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

Issue 404613005: Start using RenderFrameProxyHost objects. (Closed)

Created:
6 years, 5 months ago by kenrb
Modified:
6 years, 4 months ago
CC:
chromium-reviews, creis+watch_chromium.org, darin-cc_chromium.org, jam, miu+watch_chromium.org, nasko+codewatch_chromium.org, site-isolation-reviews_chromium.org
Project:
chromium
Visibility:
Public.

Description

Start using RenderFrameProxyHost objects. Instantiate RenderFrameProxyHost objects for remote frames when using --site-per-process. BUG=357747

Patch Set 1 #

Total comments: 19

Patch Set 2 : Rebase #

Patch Set 3 : cosmetics #

Patch Set 4 : Bug fix + ncarter review comments addressed #

Total comments: 88

Patch Set 5 : Rebase, bug fixes, addressed creis' comments #

Patch Set 6 : Rebase #

Patch Set 7 : Compile fix #

Total comments: 23

Patch Set 8 : more comments addressed #

Total comments: 5

Patch Set 9 : more tweaks #

Total comments: 3

Patch Set 10 : Removed unneeded CHECK #

Total comments: 1

Patch Set 11 : Rebased and fixed test failures #

Patch Set 12 : Fix merge issues #

Patch Set 13 : Disabled failing test #

Patch Set 14 : Another test disabled #

Unified diffs Side-by-side diffs Delta from patch set Stats (+605 lines, -180 lines) Patch
M content/browser/frame_host/frame_tree.h View 1 2 3 4 5 6 7 2 chunks +17 lines, -10 lines 0 comments Download
M content/browser/frame_host/frame_tree.cc View 1 2 3 4 5 6 7 8 4 chunks +50 lines, -16 lines 0 comments Download
M content/browser/frame_host/frame_tree_browsertest.cc View 1 2 3 4 5 6 7 3 chunks +60 lines, -0 lines 0 comments Download
M content/browser/frame_host/navigation_controller_impl.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +9 lines, -0 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 2 chunks +3 lines, -0 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 7 chunks +36 lines, -12 lines 0 comments Download
M content/browser/frame_host/render_frame_host_manager.h View 1 2 3 4 5 6 7 5 chunks +29 lines, -8 lines 0 comments Download
M content/browser/frame_host/render_frame_host_manager.cc View 1 2 3 4 5 6 7 8 9 10 13 chunks +122 lines, -46 lines 0 comments Download
M content/browser/frame_host/render_frame_proxy_host.h View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M content/browser/frame_host/render_frame_proxy_host.cc View 1 2 3 2 chunks +28 lines, -0 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 1 chunk +3 lines, -1 line 0 comments Download
M content/browser/web_contents/opened_by_dom_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/web_contents/web_contents_impl.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +4 lines, -1 line 0 comments Download
M content/browser/web_contents/web_contents_impl.cc View 1 2 3 4 5 6 7 8 9 10 5 chunks +23 lines, -6 lines 0 comments Download
M content/common/frame_messages.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +16 lines, -0 lines 0 comments Download
M content/renderer/render_frame_impl.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +11 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 14 chunks +102 lines, -32 lines 0 comments Download
M content/renderer/render_frame_proxy.h View 1 2 chunks +6 lines, -7 lines 0 comments Download
M content/renderer/render_frame_proxy.cc View 1 9 4 chunks +6 lines, -12 lines 0 comments Download
M content/renderer/render_thread_impl.h View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M content/renderer/render_thread_impl.cc View 1 2 3 4 5 6 7 8 9 10 6 chunks +22 lines, -8 lines 0 comments Download
M content/renderer/render_view_impl.cc View 1 2 3 4 5 6 7 8 9 10 12 chunks +46 lines, -18 lines 0 comments Download
M extensions/renderer/script_context.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 34 (0 generated)
kenrb
This continues the work from https://codereview.chromium.org/241223002/. Originally Nasko's patch.
6 years, 5 months ago (2014-07-17 21:54:07 UTC) #1
ncarter (slow)
https://codereview.chromium.org/404613005/diff/1/content/browser/frame_host/frame_tree.cc File content/browser/frame_host/frame_tree.cc (right): https://codereview.chromium.org/404613005/diff/1/content/browser/frame_host/frame_tree.cc#newcode61 content/browser/frame_host/frame_tree.cc:61: if (source_node == node) Should this check be |source_node ...
6 years, 5 months ago (2014-07-21 20:31:57 UTC) #2
kenrb
Adding Charlie as a reviewer. Nick: do you mind taking a look again? https://codereview.chromium.org/404613005/diff/1/content/browser/frame_host/frame_tree.cc File ...
6 years, 5 months ago (2014-07-24 17:53:54 UTC) #3
ncarter (slow)
lgtm! https://codereview.chromium.org/404613005/diff/1/content/browser/frame_host/frame_tree.cc File content/browser/frame_host/frame_tree.cc (right): https://codereview.chromium.org/404613005/diff/1/content/browser/frame_host/frame_tree.cc#newcode61 content/browser/frame_host/frame_tree.cc:61: if (source_node == node) On 2014/07/24 17:53:53, kenrb ...
6 years, 5 months ago (2014-07-24 18:19:08 UTC) #4
dcheng
https://codereview.chromium.org/404613005/diff/60001/content/renderer/render_frame_impl.cc File content/renderer/render_frame_impl.cc (right): https://codereview.chromium.org/404613005/diff/60001/content/renderer/render_frame_impl.cc#newcode711 content/renderer/render_frame_impl.cc:711: if (!frame_->document().isNull()) I don't understand why we need this ...
6 years, 5 months ago (2014-07-24 18:23:28 UTC) #5
kenrb
https://codereview.chromium.org/404613005/diff/60001/content/renderer/render_frame_impl.cc File content/renderer/render_frame_impl.cc (right): https://codereview.chromium.org/404613005/diff/60001/content/renderer/render_frame_impl.cc#newcode711 content/renderer/render_frame_impl.cc:711: if (!frame_->document().isNull()) On 2014/07/24 18:23:28, dcheng (OOO) wrote: > ...
6 years, 5 months ago (2014-07-24 21:06:17 UTC) #6
Charlie Reis
This is exciting. I'm eager to see us start creating WebRemoteFrames! Sorry for all the ...
6 years, 5 months ago (2014-07-24 22:36:32 UTC) #7
dcheng
On 2014/07/24 at 21:06:17, kenrb wrote: > https://codereview.chromium.org/404613005/diff/60001/content/renderer/render_frame_impl.cc > File content/renderer/render_frame_impl.cc (right): > > https://codereview.chromium.org/404613005/diff/60001/content/renderer/render_frame_impl.cc#newcode711 ...
6 years, 5 months ago (2014-07-24 23:26:09 UTC) #8
nasko
A drive-by to address some of Charlie's comments and provide some context. https://codereview.chromium.org/404613005/diff/60001/content/browser/frame_host/frame_tree.h File content/browser/frame_host/frame_tree.h ...
6 years, 5 months ago (2014-07-25 07:13:21 UTC) #9
ncarter (slow)
https://codereview.chromium.org/404613005/diff/60001/content/browser/frame_host/render_frame_host_impl.h File content/browser/frame_host/render_frame_host_impl.h (right): https://codereview.chromium.org/404613005/diff/60001/content/browser/frame_host/render_frame_host_impl.h#newcode116 content/browser/frame_host/render_frame_host_impl.h:116: bool has_received_swap_out_ack() { return has_received_swap_out_ack_; } On 2014/07/25 07:13:20, ...
6 years, 4 months ago (2014-07-25 17:18:16 UTC) #10
kenrb
https://codereview.chromium.org/404613005/diff/60001/content/browser/frame_host/frame_tree.h File content/browser/frame_host/frame_tree.h (right): https://codereview.chromium.org/404613005/diff/60001/content/browser/frame_host/frame_tree.h#newcode75 content/browser/frame_host/frame_tree.h:75: // given |site_instance| in every node except the |source| ...
6 years, 4 months ago (2014-07-25 23:42:07 UTC) #11
Charlie Reis
Thanks-- next round of comments below. https://codereview.chromium.org/404613005/diff/60001/content/browser/frame_host/frame_tree.h File content/browser/frame_host/frame_tree.h (right): https://codereview.chromium.org/404613005/diff/60001/content/browser/frame_host/frame_tree.h#newcode78 content/browser/frame_host/frame_tree.h:78: const scoped_refptr<SiteInstance>& site_instance); ...
6 years, 4 months ago (2014-07-28 19:24:29 UTC) #12
kenrb
https://codereview.chromium.org/404613005/diff/120001/content/browser/frame_host/frame_tree.h File content/browser/frame_host/frame_tree.h (right): https://codereview.chromium.org/404613005/diff/120001/content/browser/frame_host/frame_tree.h#newcode74 content/browser/frame_host/frame_tree.h:74: // When a new process is being created to ...
6 years, 4 months ago (2014-07-28 21:07:21 UTC) #13
ncarter (slow)
https://codereview.chromium.org/404613005/diff/60001/content/browser/frame_host/frame_tree.h File content/browser/frame_host/frame_tree.h (right): https://codereview.chromium.org/404613005/diff/60001/content/browser/frame_host/frame_tree.h#newcode78 content/browser/frame_host/frame_tree.h:78: const scoped_refptr<SiteInstance>& site_instance); On 2014/07/28 19:24:28, Charlie Reis wrote: ...
6 years, 4 months ago (2014-07-28 22:30:49 UTC) #14
ncarter (slow)
https://codereview.chromium.org/404613005/diff/60001/content/browser/frame_host/render_frame_host_manager.cc File content/browser/frame_host/render_frame_host_manager.cc (right): https://codereview.chromium.org/404613005/diff/60001/content/browser/frame_host/render_frame_host_manager.cc#newcode1008 content/browser/frame_host/render_frame_host_manager.cc:1008: render_view_host, opener_route_id, proxy_routing_id, for_main_frame); On 2014/07/28 22:30:49, ncarter wrote: ...
6 years, 4 months ago (2014-07-28 22:31:27 UTC) #15
Charlie Reis
LGTM apart from Daniel's question in RenderFrameImpl. You'll also need owners approval for the extensions ...
6 years, 4 months ago (2014-07-28 22:32:28 UTC) #16
kenrb
kalman@: Can you please review the change in extensions/? https://codereview.chromium.org/404613005/diff/160001/content/browser/frame_host/frame_tree.cc File content/browser/frame_host/frame_tree.cc (right): https://codereview.chromium.org/404613005/diff/160001/content/browser/frame_host/frame_tree.cc#newcode159 content/browser/frame_host/frame_tree.cc:159: ...
6 years, 4 months ago (2014-07-29 16:38:36 UTC) #17
Charlie Reis
LGTM with nit. https://codereview.chromium.org/404613005/diff/160001/content/renderer/render_frame_impl.cc File content/renderer/render_frame_impl.cc (right): https://codereview.chromium.org/404613005/diff/160001/content/renderer/render_frame_impl.cc#newcode722 content/renderer/render_frame_impl.cc:722: // to this method. In that ...
6 years, 4 months ago (2014-07-29 16:46:36 UTC) #18
not at google - send to devlin
lgtm
6 years, 4 months ago (2014-07-29 16:53:48 UTC) #19
kenrb
https://codereview.chromium.org/404613005/diff/180001/content/renderer/render_frame_proxy.cc File content/renderer/render_frame_proxy.cc (right): https://codereview.chromium.org/404613005/diff/180001/content/renderer/render_frame_proxy.cc#newcode167 content/renderer/render_frame_proxy.cc:167: CHECK(!render_frame || frame_routing_id_ != MSG_ROUTING_NONE); On 2014/07/29 16:46:35, Charlie ...
6 years, 4 months ago (2014-07-29 17:28:01 UTC) #20
kenrb
The CQ bit was checked by kenrb@chromium.org
6 years, 4 months ago (2014-07-29 17:29:02 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kenrb@chromium.org/404613005/200001
6 years, 4 months ago (2014-07-29 17:29:59 UTC) #22
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_dbg_triggered_tests on tryserver.chromium.linux ...
6 years, 4 months ago (2014-07-29 21:57:27 UTC) #23
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 4 months ago (2014-07-29 22:19:57 UTC) #24
commit-bot: I haz the power
Try jobs failed on following builders: android_dbg_triggered_tests on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/android_dbg_triggered_tests/builds/810)
6 years, 4 months ago (2014-07-29 22:19:58 UTC) #25
ncarter (slow)
https://codereview.chromium.org/404613005/diff/200001/content/browser/frame_host/render_frame_host_manager.cc File content/browser/frame_host/render_frame_host_manager.cc (right): https://codereview.chromium.org/404613005/diff/200001/content/browser/frame_host/render_frame_host_manager.cc#newcode963 content/browser/frame_host/render_frame_host_manager.cc:963: routing_id = proxy->GetRoutingID(); This line is the bug. Revert ...
6 years, 4 months ago (2014-07-31 17:38:23 UTC) #26
ncarter (slow)
https://codereview.chromium.org/404613005/diff/180001/content/browser/frame_host/render_frame_host_manager.cc File content/browser/frame_host/render_frame_host_manager.cc (right): https://codereview.chromium.org/404613005/diff/180001/content/browser/frame_host/render_frame_host_manager.cc#newcode1332 content/browser/frame_host/render_frame_host_manager.cc:1332: SiteInstance* new_instance = current_instance; If you make this line: ...
6 years, 4 months ago (2014-07-31 19:45:02 UTC) #27
kenrb
The CQ bit was checked by kenrb@chromium.org
6 years, 4 months ago (2014-08-01 21:34:54 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kenrb@chromium.org/404613005/280001
6 years, 4 months ago (2014-08-01 21:36:17 UTC) #29
nasko
The CQ bit was unchecked by nasko@chromium.org
6 years, 4 months ago (2014-08-01 21:55:57 UTC) #30
ncarter (slow)
The CQ bit was checked by nick@chromium.org
6 years, 4 months ago (2014-08-04 17:53:56 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kenrb@chromium.org/404613005/280001
6 years, 4 months ago (2014-08-04 17:54:56 UTC) #32
ncarter (slow)
The CQ bit was unchecked by nick@chromium.org
6 years, 4 months ago (2014-08-04 17:55:06 UTC) #33
ncarter (slow)
6 years, 4 months ago (2014-08-05 00:32:21 UTC) #34
This has one remaining trybot failure, and Android-only failure of the new test
CrossProcessFrameTreeBrowserTest.CreateCrossProcessSubframeProxies. The fix for
that is likely a change to Blink, so I'll disable it and try landing this patch
under TBR via issue 444503002.

Powered by Google App Engine
This is Rietveld 408576698