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

Issue 25503004: Create a new RenderFrameHost per child frame when --site-per-process is enabled. (Closed)

Created:
7 years, 2 months ago by nasko
Modified:
7 years, 2 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam, miu+watch_chromium.org
Visibility:
Public.

Description

Create a new RenderFrameHost per child frame when --site-per-process is enabled. This CL is continuation of https://codereview.chromium.org/23841002/: - Adds a new sync IPC for child frame creation. - Added frame_messages.h for frame related messages. - RenderView now creates and closes the main frame WebFrame rather than relying on the WebView to do it. - Extracted FrameTree out of WebContents. FYI, UMA stats for tracking for site instances has been disabled in another CL since they won't make sense until this code is enabled w/o the flag. Also, FrameHostMsg_Detach is ViewHostMsg_FrameDeatch renamed and FrameHostMsg_CreateChildFrame is ViewHostMsg_FrameAttached renamed plus a little more functionality to get a routing ID assigned by the browser. (https://codereview.chromium.org/23506013/ is the Blink-side of the CL) BUG=245126 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=226779

Patch Set 1 #

Patch Set 2 : Store a pointer to RVH inside RFH :(. #

Patch Set 3 : Fix compile error in unit tests. #

Patch Set 4 : Move global map insert/erase behind the flag. #

Total comments: 10

Patch Set 5 : Fixes for Charlie's comments. #

Patch Set 6 : Rebase on ToT. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+968 lines, -416 lines) Patch
A content/browser/renderer_host/frame_tree.h View 1 2 3 4 1 chunk +103 lines, -0 lines 0 comments Download
A content/browser/renderer_host/frame_tree.cc View 1 2 3 4 1 chunk +138 lines, -0 lines 0 comments Download
A + content/browser/renderer_host/frame_tree_node.h View 3 chunks +43 lines, -3 lines 0 comments Download
A content/browser/renderer_host/frame_tree_node.cc View 1 1 chunk +57 lines, -0 lines 0 comments Download
A content/browser/renderer_host/frame_tree_unittest.cc View 1 2 3 4 1 chunk +153 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_frame_host_impl.h View 1 2 3 4 3 chunks +25 lines, -1 line 0 comments Download
M content/browser/renderer_host/render_frame_host_impl.cc View 1 2 3 4 4 chunks +27 lines, -3 lines 0 comments Download
A content/browser/renderer_host/render_frame_message_filter.h View 1 chunk +44 lines, -0 lines 0 comments Download
A content/browser/renderer_host/render_frame_message_filter.cc View 1 chunk +71 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_process_host_impl.cc View 1 2 3 4 5 2 chunks +3 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_view_host_browsertest.cc View 2 chunks +4 lines, -4 lines 0 comments Download
M content/browser/renderer_host/render_view_host_delegate.h View 1 2 3 4 5 2 chunks +8 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_view_host_delegate.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_view_host_impl.h View 2 chunks +21 lines, -8 lines 0 comments Download
M content/browser/renderer_host/render_view_host_impl.cc View 1 5 chunks +13 lines, -7 lines 0 comments Download
M content/browser/site_per_process_browsertest.cc View 4 chunks +81 lines, -3 lines 0 comments Download
D content/browser/web_contents/frame_tree_node.h View 1 chunk +0 lines, -76 lines 0 comments Download
D content/browser/web_contents/frame_tree_node.cc View 1 chunk +0 lines, -37 lines 0 comments Download
M content/browser/web_contents/interstitial_page_impl.h View 3 chunks +6 lines, -0 lines 0 comments Download
M content/browser/web_contents/interstitial_page_impl.cc View 5 chunks +15 lines, -8 lines 0 comments Download
M content/browser/web_contents/render_view_host_manager.cc View 1 2 3 4 5 2 chunks +6 lines, -2 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.h View 1 2 3 4 5 8 chunks +7 lines, -14 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.cc View 1 2 3 4 5 11 chunks +29 lines, -97 lines 0 comments Download
M content/browser/web_contents/web_contents_impl_browsertest.cc View 2 chunks +1 line, -40 lines 0 comments Download
M content/browser/web_contents/web_contents_impl_unittest.cc View 1 2 3 4 5 2 chunks +0 lines, -79 lines 0 comments Download
M content/common/content_message_generator.h View 1 chunk +1 line, -0 lines 0 comments Download
A content/common/frame_messages.h View 1 chunk +37 lines, -0 lines 0 comments Download
M content/common/view_messages.h View 1 chunk +0 lines, -13 lines 0 comments Download
M content/content_browser.gypi View 1 2 3 4 5 3 chunks +6 lines, -2 lines 0 comments Download
M content/content_tests.gypi View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/render_frame_impl.h View 1 chunk +2 lines, -2 lines 0 comments Download
M content/renderer/render_frame_impl.cc View 1 2 3 5 chunks +48 lines, -13 lines 0 comments Download
M content/renderer/render_view_impl.cc View 1 2 3 4 5 2 chunks +6 lines, -4 lines 0 comments Download
A content/test/data/site_isolation/blank.html View 1 chunk +1 line, -0 lines 0 comments Download
A content/test/data/site_isolation/frames-X-X.html View 1 chunk +6 lines, -0 lines 0 comments Download
M ipc/ipc_message_start.h View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
nasko
Hey guys, This is a copy of the CL that Albert has been working on ...
7 years, 2 months ago (2013-10-02 20:57:50 UTC) #1
jln (very slow on Chromium)
On 2013/10/02 20:57:50, nasko wrote: > Hey guys, > This is a copy of the ...
7 years, 2 months ago (2013-10-02 21:02:46 UTC) #2
Charlie Reis
LGTM with nits, but I'm curious if we can simplify it a bit by just ...
7 years, 2 months ago (2013-10-02 22:25:18 UTC) #3
nasko
I've removed the frame look up and using the root RVH all the time. Also ...
7 years, 2 months ago (2013-10-02 23:02:06 UTC) #4
Charlie Reis
LGTM
7 years, 2 months ago (2013-10-02 23:30:57 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/nasko@chromium.org/25503004/41001
7 years, 2 months ago (2013-10-03 13:32:13 UTC) #6
commit-bot: I haz the power
Failed to apply patch for content/browser/web_contents/web_contents_impl.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
7 years, 2 months ago (2013-10-03 13:32:24 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/nasko@chromium.org/25503004/52001
7 years, 2 months ago (2013-10-03 13:45:53 UTC) #8
commit-bot: I haz the power
7 years, 2 months ago (2013-10-03 17:24:59 UTC) #9
Message was sent while issue was closed.
Change committed as 226779

Powered by Google App Engine
This is Rietveld 408576698