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

Issue 100473010: Adding RenderWidgetHostViewChildFrame for OOPIF view. (Closed)

Created:
7 years ago by kenrb
Modified:
6 years, 11 months ago
CC:
chromium-reviews, yusukes+watch_chromium.org, yukishiino+watch_chromium.org, jam, penghuang+watch_chromium.org, joi+watch-content_chromium.org, nona+watch_chromium.org, darin-cc_chromium.org, James Su, miu+watch_chromium.org, site-isolation-reviews_chromium.org
Visibility:
Public.

Description

Adding RenderWidgetHostViewChildFrame for OOPIF view. RenderWidgetHostViewChildFrame becomes the view class for child frames being rendered in a different process from their parent. CrossProcessFrameConnector is a supporting class for that, encapsulating state specific to the parent/child frame relationship. RenderWidgetHostViewGuest is made a subclass of RenderWidgetHostViewChildFrame in order to keep them synchronized. Gradually we will move all functionality from RWHVGuest to RWHVChildFrame and then get rid of RWHVGuest altogether. TBR=sadrul BUG=325803 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=242942

Patch Set 1 #

Patch Set 2 : Fixing build #

Patch Set 3 : Style corrections #

Patch Set 4 : Fixed broken unit test #

Total comments: 15

Patch Set 5 : addressing creis review comments #

Patch Set 6 : Tweaked a comment #

Total comments: 35

Patch Set 7 : WIP snapshot with major comment rewrite. #

Total comments: 26

Patch Set 8 : Address comments. Modify lifetime contract. #

Patch Set 9 : ChildFrameView is just the View in the CPFC context. #

Patch Set 10 : Merging Frame Swap IPC types #

Patch Set 11 : Fix macros and naming #

Patch Set 12 : cleaned up and merged ToT #

Patch Set 13 : add missing files and reorder struct #

Total comments: 6

Patch Set 14 : remove old "OVERRIDE" #

Patch Set 15 : fix comment. also squished change locally. #

Total comments: 19

Patch Set 16 : address nasko's comments #

Total comments: 2

Patch Set 17 : merged ToT #

Patch Set 18 : fix nit #

Patch Set 19 : Fix merge issues. #

Total comments: 2

Patch Set 20 : constructor rated explicit #

Unified diffs Side-by-side diffs Delta from patch set Stats (+903 lines, -1271 lines) Patch
M content/browser/browser_plugin/browser_plugin_guest.h View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +6 lines, -9 lines 0 comments Download
M content/browser/browser_plugin/browser_plugin_guest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 4 chunks +14 lines, -18 lines 0 comments Download
M content/browser/browser_plugin/browser_plugin_guest_manager.h View 1 2 3 4 5 6 7 8 9 2 chunks +4 lines, -5 lines 0 comments Download
M content/browser/browser_plugin/browser_plugin_guest_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +5 lines, -8 lines 0 comments Download
A content/browser/frame_host/cross_process_frame_connector.h View 1 2 3 4 5 6 7 8 9 1 chunk +103 lines, -0 lines 0 comments Download
A content/browser/frame_host/cross_process_frame_connector.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +89 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 11 12 13 14 15 16 3 chunks +25 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 11 12 13 14 15 16 2 chunks +2 lines, -0 lines 0 comments Download
A + content/browser/frame_host/render_widget_host_view_child_frame.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 7 chunks +43 lines, -70 lines 0 comments Download
A content/browser/frame_host/render_widget_host_view_child_frame.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +373 lines, -0 lines 0 comments Download
A + content/browser/frame_host/render_widget_host_view_child_frame_unittest.cc View 5 chunks +14 lines, -8 lines 0 comments Download
A + content/browser/frame_host/render_widget_host_view_guest.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 8 chunks +11 lines, -38 lines 0 comments Download
A + content/browser/frame_host/render_widget_host_view_guest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 11 chunks +23 lines, -100 lines 0 comments Download
A + content/browser/frame_host/render_widget_host_view_guest_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
D content/browser/renderer_host/render_widget_host_view_guest.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +0 lines, -222 lines 0 comments Download
D content/browser/renderer_host/render_widget_host_view_guest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +0 lines, -622 lines 0 comments Download
D content/browser/renderer_host/render_widget_host_view_guest_unittest.cc View 1 chunk +0 lines, -81 lines 0 comments Download
M content/browser/web_contents/web_contents_view_guest.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/common/browser_plugin/browser_plugin_messages.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 4 chunks +20 lines, -35 lines 0 comments Download
M content/common/frame_messages.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +42 lines, -0 lines 0 comments Download
A + content/common/frame_param.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +4 lines, -3 lines 0 comments Download
A + content/common/frame_param.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +14 lines, -8 lines 0 comments Download
A content/common/frame_param_macros.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +56 lines, -0 lines 0 comments Download
M content/content_browser.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 3 chunks +6 lines, -2 lines 0 comments Download
M content/content_common.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +3 lines, -0 lines 0 comments Download
M content/content_tests.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +2 lines, -1 line 0 comments Download
M content/renderer/browser_plugin/browser_plugin.h View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -2 lines 0 comments Download
M content/renderer/browser_plugin/browser_plugin.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +8 lines, -9 lines 0 comments Download
M content/renderer/browser_plugin/browser_plugin_compositing_helper.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 3 chunks +32 lines, -28 lines 0 comments Download

Messages

Total messages: 37 (0 generated)
kenrb
Antoine, Fady: PTAL?
7 years ago (2013-12-10 21:28:09 UTC) #1
kenrb
Adding Istiaque as an alternative reviewer for the RenderWidgetHostViewGuest change (Fady is OOO), and Charlie ...
7 years ago (2013-12-11 22:54:33 UTC) #2
Charlie Reis
Just a few comments so far to help me understand. https://codereview.chromium.org/100473010/diff/50001/content/browser/frame_host/cross_process_frame_connector.h File content/browser/frame_host/cross_process_frame_connector.h (right): https://codereview.chromium.org/100473010/diff/50001/content/browser/frame_host/cross_process_frame_connector.h#newcode23 ...
7 years ago (2013-12-12 02:42:04 UTC) #3
kenrb
It might be worth clarifying message flows. Child frame to parent frame messages (not postmessage ...
7 years ago (2013-12-13 18:41:16 UTC) #4
awong
Added a few nits for Ken. piman & fsamuel: we'd like to try to get ...
7 years ago (2013-12-14 02:25:13 UTC) #5
Charlie Reis
https://codereview.chromium.org/100473010/diff/50001/content/browser/frame_host/cross_process_frame_connector.h File content/browser/frame_host/cross_process_frame_connector.h (right): https://codereview.chromium.org/100473010/diff/50001/content/browser/frame_host/cross_process_frame_connector.h#newcode33 content/browser/frame_host/cross_process_frame_connector.h:33: RenderFrameHostImpl* frame_proxy_to_parent_renderer); On 2013/12/13 18:41:17, kenrb wrote: > On ...
7 years ago (2013-12-16 19:31:08 UTC) #6
Charlie Reis
https://codereview.chromium.org/100473010/diff/90001/content/browser/frame_host/cross_process_frame_connector.h File content/browser/frame_host/cross_process_frame_connector.h (right): https://codereview.chromium.org/100473010/diff/90001/content/browser/frame_host/cross_process_frame_connector.h#newcode28 content/browser/frame_host/cross_process_frame_connector.h:28: class CrossProcessFrameConnector { Ok, Albert tried to explain this ...
7 years ago (2013-12-16 21:35:32 UTC) #7
nasko
A drive-by review, mostly style and nits. https://codereview.chromium.org/100473010/diff/90001/content/browser/frame_host/cross_process_frame_connector.cc File content/browser/frame_host/cross_process_frame_connector.cc (right): https://codereview.chromium.org/100473010/diff/90001/content/browser/frame_host/cross_process_frame_connector.cc#newcode16 content/browser/frame_host/cross_process_frame_connector.cc:16: RenderFrameHostImpl* frame_proxy_to_parent_renderer) ...
7 years ago (2013-12-16 23:16:32 UTC) #8
piman
https://codereview.chromium.org/100473010/diff/90001/content/common/frame_messages.h File content/common/frame_messages.h (right): https://codereview.chromium.org/100473010/diff/90001/content/common/frame_messages.h#newcode30 content/common/frame_messages.h:30: int /* route_id */, route_id of what? How does ...
7 years ago (2013-12-17 00:14:56 UTC) #9
awong
Still working through comments, but wanted to publish updates to cross_process_frame_connector.h @creis, @nasko: can you ...
7 years ago (2013-12-17 00:44:13 UTC) #10
nasko
Couple of comments. https://codereview.chromium.org/100473010/diff/170001/content/browser/frame_host/cross_process_frame_connector.h File content/browser/frame_host/cross_process_frame_connector.h (right): https://codereview.chromium.org/100473010/diff/170001/content/browser/frame_host/cross_process_frame_connector.h#newcode47 content/browser/frame_host/cross_process_frame_connector.h:47: // to allow for this communiation. ...
7 years ago (2013-12-17 00:56:52 UTC) #11
Charlie Reis
Thanks, that class-level comment is much more helpful. https://codereview.chromium.org/100473010/diff/170001/content/browser/frame_host/cross_process_frame_connector.h File content/browser/frame_host/cross_process_frame_connector.h (right): https://codereview.chromium.org/100473010/diff/170001/content/browser/frame_host/cross_process_frame_connector.h#newcode44 content/browser/frame_host/cross_process_frame_connector.h:44: // ...
7 years ago (2013-12-17 01:09:30 UTC) #12
awong
All comments addressed. PTAL https://codereview.chromium.org/100473010/diff/90001/content/browser/frame_host/render_frame_host_impl.cc File content/browser/frame_host/render_frame_host_impl.cc (right): https://codereview.chromium.org/100473010/diff/90001/content/browser/frame_host/render_frame_host_impl.cc#newcode45 content/browser/frame_host/render_frame_host_impl.cc:45: cross_process_frame_connector_(0), On 2013/12/16 23:16:32, nasko ...
7 years ago (2013-12-17 02:45:26 UTC) #13
piman
On Mon, Dec 16, 2013 at 6:45 PM, <ajwong@chromium.org> wrote: > All comments addressed. PTAL ...
7 years ago (2013-12-17 03:55:13 UTC) #14
awong
On Mon, Dec 16, 2013 at 7:54 PM, Antoine Labour <piman@chromium.org> wrote: > > > ...
7 years ago (2013-12-17 04:47:24 UTC) #15
awong
Okay, time for review again. Dropping @piman since he's out until 1/7.
7 years ago (2013-12-19 02:07:49 UTC) #16
Fady Samuel
browser_plugin LGTM. https://codereview.chromium.org/100473010/diff/310001/content/browser/renderer_host/render_widget_host_view_guest_unittest.cc File content/browser/renderer_host/render_widget_host_view_guest_unittest.cc (left): https://codereview.chromium.org/100473010/diff/310001/content/browser/renderer_host/render_widget_host_view_guest_unittest.cc#oldcode1 content/browser/renderer_host/render_widget_host_view_guest_unittest.cc:1: // Copyright (c) 2013 The Chromium Authors. ...
7 years ago (2013-12-19 21:35:00 UTC) #17
awong
@sadrul: Fady said to ping you. Can you look at the changes related to RenderWidgetHostView*? ...
7 years ago (2013-12-19 21:45:35 UTC) #18
Charlie Reis
CrossProcessFrameConnector LGTM, though I defer to others on the RWHV-related stuff. Thanks for clarifying things! ...
7 years ago (2013-12-20 00:24:21 UTC) #19
nasko
A drive-by review with mostly nits. https://codereview.chromium.org/100473010/diff/350001/content/browser/frame_host/render_widget_host_view_guest.h File content/browser/frame_host/render_widget_host_view_guest.h (right): https://codereview.chromium.org/100473010/diff/350001/content/browser/frame_host/render_widget_host_view_guest.h#newcode5 content/browser/frame_host/render_widget_host_view_guest.h:5: #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_GUEST_H_ The ...
7 years ago (2013-12-20 17:21:04 UTC) #20
awong
Commetns adressed. https://codereview.chromium.org/100473010/diff/310001/content/browser/renderer_host/render_widget_host_view_guest_unittest.cc File content/browser/renderer_host/render_widget_host_view_guest_unittest.cc (left): https://codereview.chromium.org/100473010/diff/310001/content/browser/renderer_host/render_widget_host_view_guest_unittest.cc#oldcode1 content/browser/renderer_host/render_widget_host_view_guest_unittest.cc:1: // Copyright (c) 2013 The Chromium Authors. ...
7 years ago (2013-12-20 23:53:36 UTC) #21
nasko
LGTM with just one nit. https://codereview.chromium.org/100473010/diff/430001/content/common/frame_messages.h File content/common/frame_messages.h (right): https://codereview.chromium.org/100473010/diff/430001/content/common/frame_messages.h#newcode28 content/common/frame_messages.h:28: // This is used ...
7 years ago (2013-12-21 00:39:38 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kenrb@chromium.org/100473010/520001
6 years, 11 months ago (2014-01-02 21:43:57 UTC) #23
awong
On 2014/01/02 21:43:57, I haz the power (commit-bot) wrote: > CQ is trying da patch. ...
6 years, 11 months ago (2014-01-02 21:47:42 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kenrb@chromium.org/100473010/640001
6 years, 11 months ago (2014-01-02 21:49:54 UTC) #25
commit-bot: I haz the power
Retried try job too often on linux_rel for step(s) base_unittests, browser_tests, interactive_ui_tests, net_unittests, unit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_rel&number=209277
6 years, 11 months ago (2014-01-02 22:07:37 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kenrb@chromium.org/100473010/830001
6 years, 11 months ago (2014-01-03 00:11:49 UTC) #27
commit-bot: I haz the power
Retried try job too often on linux_rel for step(s) chromedriver2_unittests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_rel&number=209355
6 years, 11 months ago (2014-01-03 01:02:09 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/100473010/830001
6 years, 11 months ago (2014-01-03 02:14:53 UTC) #29
commit-bot: I haz the power
Retried try job too often on linux_rel for step(s) chromedriver2_unittests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_rel&number=209410
6 years, 11 months ago (2014-01-03 03:12:22 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kenrb@chromium.org/100473010/830001
6 years, 11 months ago (2014-01-03 03:16:25 UTC) #31
commit-bot: I haz the power
Retried try job too often on linux_rel for step(s) chromedriver2_unittests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_rel&number=209428
6 years, 11 months ago (2014-01-03 03:57:39 UTC) #32
sadrul
Sorry about the delay. LGTM https://codereview.chromium.org/100473010/diff/310001/content/browser/frame_host/render_widget_host_view_child_frame.h File content/browser/frame_host/render_widget_host_view_child_frame.h (right): https://codereview.chromium.org/100473010/diff/310001/content/browser/frame_host/render_widget_host_view_child_frame.h#newcode30 content/browser/frame_host/render_widget_host_view_child_frame.h:30: RenderWidgetHostViewChildFrame(RenderWidgetHost* widget); explicit https://codereview.chromium.org/100473010/diff/830001/content/browser/frame_host/render_widget_host_view_child_frame.h ...
6 years, 11 months ago (2014-01-03 15:22:09 UTC) #33
awong
Thanks for the review! Explicitly added. On 2014/01/03 15:22:09, sadrul wrote: > Sorry about the ...
6 years, 11 months ago (2014-01-03 19:47:06 UTC) #34
awong
https://codereview.chromium.org/100473010/diff/310001/content/browser/frame_host/render_widget_host_view_child_frame.h File content/browser/frame_host/render_widget_host_view_child_frame.h (right): https://codereview.chromium.org/100473010/diff/310001/content/browser/frame_host/render_widget_host_view_child_frame.h#newcode30 content/browser/frame_host/render_widget_host_view_child_frame.h:30: RenderWidgetHostViewChildFrame(RenderWidgetHost* widget); On 2014/01/03 15:22:10, sadrul wrote: > explicit ...
6 years, 11 months ago (2014-01-03 19:54:32 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kenrb@chromium.org/100473010/1200001
6 years, 11 months ago (2014-01-03 19:54:58 UTC) #36
commit-bot: I haz the power
6 years, 11 months ago (2014-01-03 22:21:57 UTC) #37
Message was sent while issue was closed.
Change committed as 242942

Powered by Google App Engine
This is Rietveld 408576698