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

Issue 1150793002: Add ref-count on RenderViewHost for each new RenderFrameProxyHost. (Closed)

Created:
5 years, 7 months ago by nasko
Modified:
5 years, 7 months ago
Reviewers:
Charlie Reis
CC:
chromium-reviews, jam, nasko+codewatch_chromium.org, creis+watch_chromium.org, darin-cc_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

Add ref-count on RenderViewHost for each new RenderFrameProxyHost. Currently, only RenderFrameHosts are ref-counting the associated RenderViewHost. Since it is possible to have a RenderViewHost with no associated RenderFrameHost (for example a cross-process window opener/openee relationship), it should be taken into account that the associated RenderFrameProxyHost is also a ref-counting the RenderViewHost. The goal of this CL is to allow for that, even though it isn't currently the case. It is a small step towards removing swapped out RenderFrameHosts. BUG=357747 Committed: https://crrev.com/8542185bbb9fd0c0e7d0240c64403d2e4cea39f2 Cr-Commit-Position: refs/heads/master@{#331016}

Patch Set 1 #

Total comments: 14

Patch Set 2 : Fixes based on Charlie's review. #

Total comments: 4

Patch Set 3 : Better variable names. #

Patch Set 4 : Fixes and missed CHECK. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+93 lines, -28 lines) Patch
M content/browser/frame_host/frame_tree.h View 1 1 chunk +5 lines, -4 lines 0 comments Download
M content/browser/frame_host/frame_tree.cc View 1 2 chunks +13 lines, -14 lines 0 comments Download
M content/browser/frame_host/render_frame_host_impl.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M content/browser/frame_host/render_frame_host_manager.cc View 4 chunks +11 lines, -4 lines 0 comments Download
M content/browser/frame_host/render_frame_host_manager_browsertest.cc View 1 3 chunks +38 lines, -0 lines 0 comments Download
M content/browser/frame_host/render_frame_proxy_host.h View 1 2 chunks +6 lines, -0 lines 0 comments Download
M content/browser/frame_host/render_frame_proxy_host.cc View 1 2 3 2 chunks +6 lines, -1 line 0 comments Download
M content/browser/site_per_process_browsertest.cc View 1 2 3 2 chunks +12 lines, -3 lines 0 comments Download

Messages

Total messages: 13 (2 generated)
nasko
Hey Charlie, Can you review this CL for me? It is implementing the proxy refcounting ...
5 years, 7 months ago (2015-05-20 21:20:31 UTC) #2
Charlie Reis
Seems like it's on the right track. Can we add some tests that show that ...
5 years, 7 months ago (2015-05-20 23:04:59 UTC) #3
nasko
I've added tests for the first two cases. The last one will be with the ...
5 years, 7 months ago (2015-05-21 16:22:13 UTC) #4
Charlie Reis
Great. Looks good apart from one question about the third test. A few other nits ...
5 years, 7 months ago (2015-05-21 18:48:17 UTC) #5
nasko
Fixed the comments. Case 3 is impossible to do right now, without removing swapped-out RFHs, ...
5 years, 7 months ago (2015-05-21 21:28:08 UTC) #6
nasko
Added the missed CHECK. https://codereview.chromium.org/1150793002/diff/1/content/browser/frame_host/render_frame_proxy_host.cc File content/browser/frame_host/render_frame_proxy_host.cc (right): https://codereview.chromium.org/1150793002/diff/1/content/browser/frame_host/render_frame_proxy_host.cc#newcode60 content/browser/frame_host/render_frame_proxy_host.cc:60: frame_tree_node_->frame_tree()->RegisterRenderViewHost(render_view_host_); On 2015/05/21 18:48:16, Charlie ...
5 years, 7 months ago (2015-05-21 21:37:07 UTC) #7
Charlie Reis
Ah yes, I forgot about the swapped out RFH in case 3. Adding that test ...
5 years, 7 months ago (2015-05-21 21:39:18 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1150793002/60001
5 years, 7 months ago (2015-05-21 21:43:08 UTC) #10
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 7 months ago (2015-05-21 22:53:57 UTC) #11
commit-bot: I haz the power
Patchset 4 (id:??) landed as https://crrev.com/8542185bbb9fd0c0e7d0240c64403d2e4cea39f2 Cr-Commit-Position: refs/heads/master@{#331016}
5 years, 7 months ago (2015-05-21 22:54:45 UTC) #12
Steven Holte
5 years, 7 months ago (2015-05-22 01:24:43 UTC) #13
Message was sent while issue was closed.
A revert of this CL (patchset #4 id:60001) has been created in
https://codereview.chromium.org/1157563002/ by holte@chromium.org.

The reason for reverting is: It looks like the new browser test fails on Win8
aura
https://build.chromium.org/p/chromium.win/builders/Win8%20Aura/builds/30026/s....

Powered by Google App Engine
This is Rietveld 408576698