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

Issue 30323002: [DRAFT] Create RenderFrameHostManager. (Closed)

Created:
7 years, 2 months ago by Charlie Reis
Modified:
6 years, 2 months ago
Reviewers:
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam, miu+watch_chromium.org, site-isolation-reviews_chromium.org
Visibility:
Public.

Description

[DRAFT] Create RenderFrameHostManager. Major changes: 1. Move RenderViewHostManager onto FrameTreeNode. 2. Always create RenderFrameHosts (not just behind a flag). 3. Make RenderViewHostManager swap RenderFrameHosts. (Big change.) 4. Don't create RFH on FrameTreeNode. 5. Give FrameTreeNodes a browser-global ID. 6. Put the frame_tree_node_id on NavigationEntry. 7. Hack to treat cross-process iframe commits as subframes. [Closed, since these changes have all now landed via smaller CLs.] BUG=314791

Patch Set 1 #

Patch Set 2 : Rebase and get closer to navigating frames. #

Patch Set 3 : Rebase to move files to frame_host #

Patch Set 4 : Support (invisible) cross-process subframes! #

Patch Set 5 : Rebase #

Patch Set 6 : Rebase #

Patch Set 7 : Swap out the old subframe #

Patch Set 8 : Rebase to get FTN ID and Navigator changes. #

Patch Set 9 : Fix SwapOut, put swap behind a flag #

Patch Set 10 : Fix shutdown and get FrameTree unittest to pass #

Patch Set 11 : Rebase #

Total comments: 1

Patch Set 12 : Cleanup and compile fixes. #

Patch Set 13 : Rebase to 503d8a8 #

Patch Set 14 : Rebase to get RFHM rename, etc #

Patch Set 15 : Rebase to 54d62df #

Patch Set 16 : Misc fixes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+617 lines, -301 lines) Patch
M chrome/browser/extensions/api/web_navigation/web_navigation_api.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/frame_host/frame_tree.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +7 lines, -18 lines 0 comments Download
M content/browser/frame_host/frame_tree.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 8 chunks +21 lines, -39 lines 0 comments Download
M content/browser/frame_host/frame_tree_node.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 4 chunks +4 lines, -20 lines 0 comments Download
M content/browser/frame_host/frame_tree_node.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 4 chunks +0 lines, -4 lines 0 comments Download
M content/browser/frame_host/frame_tree_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +70 lines, -64 lines 0 comments Download
M content/browser/frame_host/interstitial_page_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +4 lines, -2 lines 0 comments Download
M content/browser/frame_host/navigation_controller_delegate.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +0 lines, -1 line 0 comments Download
M content/browser/frame_host/navigation_controller_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +23 lines, -3 lines 0 comments Download
M content/browser/frame_host/navigation_controller_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 19 chunks +40 lines, -28 lines 0 comments Download
M content/browser/frame_host/navigation_entry_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -1 line 0 comments Download
M content/browser/frame_host/navigator_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +8 lines, -3 lines 0 comments Download
M content/browser/frame_host/render_frame_host_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +10 lines, -2 lines 0 comments Download
M content/browser/frame_host/render_frame_host_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 5 chunks +31 lines, -2 lines 0 comments Download
M content/browser/frame_host/render_frame_host_manager.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +5 lines, -1 line 0 comments Download
M content/browser/frame_host/render_frame_host_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 12 chunks +93 lines, -15 lines 0 comments Download
M content/browser/loader/cross_site_resource_handler.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +8 lines, -3 lines 0 comments Download
M content/browser/renderer_host/render_view_host_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 6 chunks +15 lines, -12 lines 0 comments Download
M content/browser/renderer_host/render_view_host_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 8 chunks +52 lines, -11 lines 0 comments Download
M content/browser/security_exploit_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +5 lines, -3 lines 0 comments Download
M content/browser/site_per_process_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 4 chunks +10 lines, -11 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 6 chunks +58 lines, -12 lines 0 comments Download
M content/common/frame_messages.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +9 lines, -0 lines 0 comments Download
M content/common/swapped_out_messages.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -0 lines 0 comments Download
M content/renderer/render_frame_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +27 lines, -0 lines 0 comments Download
M content/renderer/render_frame_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 7 chunks +83 lines, -41 lines 0 comments Download
M content/renderer/render_view_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 4 chunks +29 lines, -2 lines 0 comments Download
M content/test/test_render_view_host.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +0 lines, -2 lines 0 comments Download

Messages

Total messages: 2 (0 generated)
davidben
Random comment because I noticed there was a ResourceLoader change and was curious. https://codereview.chromium.org/30323002/diff/510001/content/browser/loader/resource_loader.cc File ...
7 years, 1 month ago (2013-11-18 22:20:50 UTC) #1
Charlie Reis
7 years, 1 month ago (2013-11-18 22:38:14 UTC) #2
On 2013/11/18 22:20:50, David Benjamin wrote:
> I actually came across that line some time ago and looked into this.
> 
> It's from http://crrev.com/217113. For sub-frames, set_first_party_for_cookies
> probably shouldn't get called because an frame's first-party for cookies
should
> still be the top-level frame or something like that? Hence the MAIN_FRAME
check.
> 
> I think neither that target_url parameter nor the set_first_party_for_cookies
> call are needed anymore anyway. There is another set_first_party_for_cookies
> call in AsyncResourceHandler that comes from the renderer, and the transfer
> doesn't happen until after redirects are followed anyway. I never checked at
> what point it stopped being necessary, but I would guess some combination of
> when the handler chain stopped being rebuilt on transfers and when transfers
> stopped happening at every redirect.

Ah, makes sense.  Thanks for looking at it, and I'll have Jochen review the
removal when I get to that part.

Powered by Google App Engine
This is Rietveld 408576698