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

Issue 106963004: Make RenderFrameHostManager swap RenderFrameHosts, not RenderViewHosts. (Closed)

Created:
7 years ago by Charlie Reis
Modified:
7 years ago
Reviewers:
jam, nasko
CC:
chromium-reviews, fischman+watch_chromium.org, jam, mcasas+watch_chromium.org, joi+watch-content_chromium.org, feature-media-reviews_chromium.org, darin-cc_chromium.org, wjia+watch_chromium.org, miu+watch_chromium.org, site-isolation-reviews_chromium.org, awong
Visibility:
Public.

Description

Make RenderFrameHostManager swap RenderFrameHosts, not RenderViewHosts. We still only have a RFHM for the main frame and not subframes, unless the --site-per-process flag is passed. To external callers, RFHM is still effectively swapping RenderViewHosts. RenderFrameHosts now indirectly keep their RenderViewHosts alive. BUG=314791 TEST=No visible behavior change. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=241151

Patch Set 1 : First round #

Patch Set 2 : Rebase #

Total comments: 18

Patch Set 3 : Fix merge conflicts #

Patch Set 4 : Fixes for Nasko's comments #

Patch Set 5 : Fix interstitial pages #

Patch Set 6 : Fix RVH creation/deletion and TODOs #

Patch Set 7 : Fix test failures #

Total comments: 16

Patch Set 8 : Fix phishing classifier browsertests #

Patch Set 9 : Fix more tests. #

Patch Set 10 : Fix Nasko's comments #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+950 lines, -689 lines) Patch
M chrome/renderer/safe_browsing/phishing_classifier_browsertest.cc View 1 2 3 4 5 6 7 8 2 chunks +8 lines, -1 line 0 comments Download
M chrome/renderer/safe_browsing/phishing_classifier_delegate_browsertest.cc View 1 2 3 4 5 6 7 3 chunks +8 lines, -2 lines 0 comments Download
M chrome/renderer/safe_browsing/phishing_dom_feature_extractor_browsertest.cc View 1 2 3 4 5 6 7 8 3 chunks +11 lines, -3 lines 0 comments Download
M content/browser/frame_host/frame_tree.h View 1 2 3 4 5 6 7 8 9 5 chunks +39 lines, -16 lines 0 comments Download
M content/browser/frame_host/frame_tree.cc View 1 2 3 4 5 6 7 8 9 6 chunks +81 lines, -31 lines 0 comments Download
M content/browser/frame_host/frame_tree_node.h View 1 2 3 4 5 6 7 8 9 5 chunks +21 lines, -42 lines 0 comments Download
M content/browser/frame_host/frame_tree_node.cc View 1 2 3 4 5 3 chunks +24 lines, -14 lines 0 comments Download
M content/browser/frame_host/frame_tree_unittest.cc View 1 2 3 4 5 6 7 8 5 chunks +35 lines, -67 lines 0 comments Download
M content/browser/frame_host/interstitial_page_impl.h View 1 2 3 4 2 chunks +4 lines, -2 lines 0 comments Download
M content/browser/frame_host/interstitial_page_impl.cc View 1 2 3 4 5 6 7 8 9 5 chunks +14 lines, -18 lines 0 comments Download
M content/browser/frame_host/render_frame_host_impl.h View 1 1 chunk +7 lines, -2 lines 0 comments Download
M content/browser/frame_host/render_frame_host_impl.cc View 1 2 3 2 chunks +5 lines, -0 lines 0 comments Download
M content/browser/frame_host/render_frame_host_manager.h View 1 2 3 4 5 9 chunks +82 lines, -44 lines 0 comments Download
M content/browser/frame_host/render_frame_host_manager.cc View 1 2 3 4 5 6 7 8 9 31 chunks +373 lines, -241 lines 3 comments Download
M content/browser/frame_host/render_frame_host_manager_unittest.cc View 1 2 3 26 chunks +140 lines, -114 lines 0 comments Download
M content/browser/renderer_host/DEPS View 1 chunk +0 lines, -2 lines 0 comments Download
M content/browser/renderer_host/media/web_contents_video_capture_device_unittest.cc View 2 chunks +5 lines, -8 lines 0 comments Download
M content/browser/renderer_host/render_view_host_browsertest.cc View 1 2 3 4 5 6 7 8 9 2 chunks +9 lines, -8 lines 0 comments Download
M content/browser/renderer_host/render_view_host_factory.h View 2 chunks +0 lines, -2 lines 0 comments Download
M content/browser/renderer_host/render_view_host_factory.cc View 1 chunk +4 lines, -6 lines 0 comments Download
M content/browser/renderer_host/render_view_host_impl.h View 6 chunks +4 lines, -20 lines 0 comments Download
M content/browser/renderer_host/render_view_host_impl.cc View 1 8 chunks +4 lines, -16 lines 0 comments Download
M content/browser/renderer_host/render_view_host_unittest.cc View 1 2 3 4 5 6 7 8 9 2 chunks +5 lines, -4 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.cc View 1 2 3 4 5 6 7 8 9 4 chunks +12 lines, -7 lines 0 comments Download
M content/browser/web_contents/web_contents_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 7 chunks +13 lines, -7 lines 0 comments Download
M content/renderer/dom_serializer_browsertest.cc View 1 2 3 4 5 6 7 8 2 chunks +8 lines, -1 line 0 comments Download
M content/renderer/resource_fetcher_browsertest.cc View 1 2 3 4 5 6 7 8 2 chunks +8 lines, -1 line 0 comments Download
M content/test/test_render_frame_host.cc View 1 2 2 chunks +10 lines, -1 line 0 comments Download
M content/test/test_render_view_host.h View 1 2 4 chunks +11 lines, -1 line 0 comments Download
M content/test/test_render_view_host.cc View 1 2 2 chunks +2 lines, -3 lines 0 comments Download
M content/test/test_render_view_host_factory.h View 1 chunk +0 lines, -1 line 0 comments Download
M content/test/test_render_view_host_factory.cc View 1 chunk +2 lines, -3 lines 0 comments Download
M content/test/test_web_contents.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 12 (0 generated)
nasko
I've only gone through roughly half the files and not the entirety of RFHM. Sending ...
7 years ago (2013-12-12 02:22:12 UTC) #1
Charlie Reis
Thanks for the early comments! I've fixed the merge conflicts in patch 3 and addressed ...
7 years ago (2013-12-12 18:19:30 UTC) #2
Charlie Reis
Ok! Looks like we're mainly down to PhishingClassifier browser tests failing, which I can look ...
7 years ago (2013-12-13 16:47:16 UTC) #3
nasko
More comments on patch set 7. Some of them might just require a TODO instead ...
7 years ago (2013-12-13 22:20:10 UTC) #4
Charlie Reis
Thanks for the comments! Can you take another look? A fair amount has changed since ...
7 years ago (2013-12-16 16:13:54 UTC) #5
nasko
Just one comment. LGTM https://codereview.chromium.org/106963004/diff/280001/content/browser/frame_host/render_frame_host_manager.cc File content/browser/frame_host/render_frame_host_manager.cc (right): https://codereview.chromium.org/106963004/diff/280001/content/browser/frame_host/render_frame_host_manager.cc#newcode768 content/browser/frame_host/render_frame_host_manager.cc:768: if (frame_routing_id == MSG_ROUTING_NONE) On ...
7 years ago (2013-12-16 17:34:20 UTC) #6
Charlie Reis
John, can you take a look at chrome/ for the test file changes? We're allocating ...
7 years ago (2013-12-16 17:49:10 UTC) #7
jam
lgtm
7 years ago (2013-12-16 20:04:56 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/creis@chromium.org/106963004/280001
7 years ago (2013-12-16 20:28:55 UTC) #9
commit-bot: I haz the power
Retried try job too often on linux_rel for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_rel&number=205119
7 years ago (2013-12-16 21:54:42 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/creis@chromium.org/106963004/280001
7 years ago (2013-12-16 22:01:31 UTC) #11
commit-bot: I haz the power
7 years ago (2013-12-17 04:11:45 UTC) #12
Message was sent while issue was closed.
Change committed as 241151

Powered by Google App Engine
This is Rietveld 408576698