After we allow scoped_refptr in third_party/WebKit/public/ in http://crbug.com/763844 , WebPrivatePtr will no longer need to support ref counted types. Its users can use scoped_refptr directly there.
#c1: Yes, for the first step.
And as the next step, we will be able to remove an indirection around public/ classes that hold WebPrivatePtr. E.g.: http://crrev.com/c/756446.
For example, WebSerializedScriptValue has two roles, one is providing an API to the content layer, and another is hiding WTF::RefPtr and WTF::RefCounted from the content layer by adding an indirection using WebPrivatePtr.
As we can use scoped_refptr and base::RefCounted on public/, we can remove the indirection, and expose its implementation as a subclass of WebSerializedScriptValue.
This issue has been Available for over a year. If it's no longer important or seems unlikely to be fixed, please consider closing it out. If it is important, please re-triage the issue.
Sorry for the inconvenience if the bug really should have been left as Available.
For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Comment 1 by cm.san...@samsung.com
, Nov 6 2017