Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(625)

Issue 1130233002: Convert main_render_frame_ to raw pointer in RenderViewImpl. (Closed)

Created:
5 years, 7 months ago by nasko
Modified:
5 years, 7 months ago
Reviewers:
ncarter (slow), dcheng, lfg
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, creis+watch_chromium.org, nasko+codewatch_chromium.org, jam, darin-cc_chromium.org, mkwst+moarreviews-renderer_chromium.org, site-isolation-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Convert 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. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+35 lines, -29 lines) Patch
M content/renderer/render_frame_impl.cc View 1 2 3 3 chunks +21 lines, -10 lines 0 comments Download
M content/renderer/render_view_browsertest.cc View 1 2 3 chunks +6 lines, -12 lines 0 comments Download
M content/renderer/render_view_impl.h View 1 2 2 chunks +2 lines, -1 line 0 comments Download
M content/renderer/render_view_impl.cc View 4 chunks +6 lines, -6 lines 0 comments Download

Messages

Total messages: 13 (3 generated)
nasko
Hey Lucas, Can you review this CL for me? It is another step towards allowing ...
5 years, 7 months ago (2015-05-08 18:41:20 UTC) #2
nasko
Hey Nick, Can you take a look at this as well? I want to have ...
5 years, 7 months ago (2015-05-08 18:43:16 UTC) #4
lfg
https://codereview.chromium.org/1130233002/diff/20001/content/renderer/render_frame_impl.cc File content/renderer/render_frame_impl.cc (right): https://codereview.chromium.org/1130233002/diff/20001/content/renderer/render_frame_impl.cc#newcode2654 content/renderer/render_frame_impl.cc:2654: render_view_->main_render_frame_ = this; Consider adding a CHECK or DCHECK ...
5 years, 7 months ago (2015-05-08 19:42:27 UTC) #5
nasko
A round of fixes. https://codereview.chromium.org/1130233002/diff/20001/content/renderer/render_frame_impl.cc File content/renderer/render_frame_impl.cc (right): https://codereview.chromium.org/1130233002/diff/20001/content/renderer/render_frame_impl.cc#newcode2654 content/renderer/render_frame_impl.cc:2654: render_view_->main_render_frame_ = this; On 2015/05/08 ...
5 years, 7 months ago (2015-05-11 16:12:33 UTC) #6
ncarter (slow)
I submitted patchset #2 to the blink_win bots, and there may be some real failures ...
5 years, 7 months ago (2015-05-11 18:27:13 UTC) #7
nasko
Addressed Nick's review comments. Looking into Windows layout test failures, which might or might not ...
5 years, 7 months ago (2015-05-11 22:01:11 UTC) #8
ncarter (slow)
All my comments have been addressed; I don't see any problems with the CL (except ...
5 years, 7 months ago (2015-05-11 22:44:50 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1130233002/60001
5 years, 7 months ago (2015-05-12 01:47:56 UTC) #11
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 7 months ago (2015-05-12 03:09:24 UTC) #12
commit-bot: I haz the power
5 years, 7 months ago (2015-05-12 03:10:21 UTC) #13
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/77de231e243d5adb0bd82c630fd6f3382ab3f42e
Cr-Commit-Position: refs/heads/master@{#329337}

Powered by Google App Engine
This is Rietveld 408576698