DescriptionConvert main_render_frame_ to raw pointer in RenderViewImpl.
The main RenderFrame object for a page is currently owned directly
through a scoped_ptr by RenderViewImpl. Since we want the main
RenderFrame to be deleted when we do a cross-process navigation,
it needs to be cleaned by as part of the regular callbacks from
Blink - WebFrameClient::frameDetached. This requires the frame to not
be owned by RenderViewImpl, so this CL changes it from scoped_ptr
to raw pointer.
The only change in behavior after this CL is that the RenderFrame
will be destroyed prior to RenderView being destroyed as part of
WebView::close(). The destruction of both objects still stays in
the same task on the event loop, though.
BUG=357747
Committed: https://crrev.com/77de231e243d5adb0bd82c630fd6f3382ab3f42e
Cr-Commit-Position: refs/heads/master@{#329337}
Patch Set 1 #Patch Set 2 : Rebased and cleaned up. #
Total comments: 4
Patch Set 3 : Address lfg@'s review comments. #
Total comments: 5
Patch Set 4 : Fixes based on nick@'s review. #
Messages
Total messages: 13 (3 generated)
|