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

Issue 357043006: Prepare RenderFrameProxy for mirroring the frame tree (Closed)

Created:
6 years, 5 months ago by ncarter (slow)
Modified:
6 years, 5 months ago
Reviewers:
jam, dcheng
CC:
chromium-reviews, creis+watch_chromium.org, darin-cc_chromium.org, jam, kenrb, nasko+codewatch_chromium.org, nasko, site-isolation-dev_chromium.org
Project:
chromium
Visibility:
Public.

Description

Changes to RenderFrameProxy: - Add accessors: web_frame(), routing_id(), render_view(). - Remove accessor: render_frame(). Where we do need to touch the RenderFrame, we'll look it up by its routing ID. - Small change to the CompositingHelper to use the new getters. - Add a map to allow finding a RenderFrameProxy by its associated blink::WebFrame. - Introduce a second factory function and differentiate the two factory functions according to the two ways RenderFrameProxies will be created. The first is for when an extant local RenderFrame is being swapped out and replaced with a new RenderFrameProxy. The second is for when a RenderFrameProxy needs to be created without displacing an existing RenderFrame, as shall occur once we mirror the frame tree. - This second factory function, which is uncalled at the moment, will create WebRemoteFrames. Also there is stubbed out code in the first factory function to create WebRemoteFrames. This code is in preparation for eliminating the RenderFrame (and its attendant WebLocalFrame) and having instead just a RenderFrameProxy. - Add some defensive checks to prepare for when the render frame may not exist, as will happen once the second factory function enters use. - Add an Init function so that code can be shared between the two factory functions. As an adminstrative note, this patch is a chunk of nasko's larger "use RenderFrameProxyHost" effor (issue 241223002) BUG=357747 TEST=browsertests, http://csreis.github.io/tests/cross-site-iframe.html renders after going cross-site under --site-per-process Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=283572 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=283965

Patch Set 1 #

Patch Set 2 : Little more hacking #

Patch Set 3 : Make content_browsertests pass #

Patch Set 4 : More cleanup #

Patch Set 5 : More self-review #

Patch Set 6 : More self-review and cleanup #

Total comments: 16

Patch Set 7 : address some comments #

Patch Set 8 : Call close() #

Total comments: 6

Patch Set 9 : Use RenderFrameImpl* instead of a routing ID #

Patch Set 10 : Fix bug that caused patch to be reverted #

Patch Set 11 : Accidentally a brace #

Patch Set 12 : Add comment. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+172 lines, -55 lines) Patch
M content/renderer/browser_plugin/browser_plugin.cc View 1 2 3 4 5 6 1 chunk +2 lines, -3 lines 0 comments Download
M content/renderer/child_frame_compositing_helper.h View 1 2 3 4 5 6 1 chunk +3 lines, -5 lines 0 comments Download
M content/renderer/child_frame_compositing_helper.cc View 1 2 3 4 5 6 1 chunk +7 lines, -8 lines 0 comments Download
M content/renderer/render_frame_impl.cc View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -1 line 0 comments Download
M content/renderer/render_frame_proxy.h View 1 2 3 4 5 6 7 8 2 chunks +43 lines, -9 lines 0 comments Download
M content/renderer/render_frame_proxy.cc View 1 2 3 4 5 6 7 8 9 10 11 7 chunks +113 lines, -26 lines 0 comments Download
M content/renderer/render_view_impl.cc View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -3 lines 0 comments Download

Messages

Total messages: 24 (0 generated)
ncarter (slow)
Avi: please review Nasko: this is your code, with some clean-up and stubbing out.
6 years, 5 months ago (2014-06-30 23:51:55 UTC) #1
Avi (use Gerrit)
I have insufficient knowledge of this area to review things properly :(
6 years, 5 months ago (2014-07-01 01:34:04 UTC) #2
ncarter (slow)
OK, I'll hunt for a different reviewer. On Mon, Jun 30, 2014 at 6:34 PM, ...
6 years, 5 months ago (2014-07-01 01:48:40 UTC) #3
ncarter (slow)
6 years, 5 months ago (2014-07-02 20:10:41 UTC) #4
dcheng
https://codereview.chromium.org/357043006/diff/100001/content/renderer/child_frame_compositing_helper.h File content/renderer/child_frame_compositing_helper.h (right): https://codereview.chromium.org/357043006/diff/100001/content/renderer/child_frame_compositing_helper.h#newcode61 content/renderer/child_frame_compositing_helper.h:61: static ChildFrameCompositingHelper* CreateCompositingHelperForRenderFrame( It seems kind of weird that ...
6 years, 5 months ago (2014-07-03 05:58:54 UTC) #5
ncarter (slow)
PTAL https://codereview.chromium.org/357043006/diff/100001/content/renderer/child_frame_compositing_helper.h File content/renderer/child_frame_compositing_helper.h (right): https://codereview.chromium.org/357043006/diff/100001/content/renderer/child_frame_compositing_helper.h#newcode61 content/renderer/child_frame_compositing_helper.h:61: static ChildFrameCompositingHelper* CreateCompositingHelperForRenderFrame( On 2014/07/03 05:58:54, dcheng (OOO) ...
6 years, 5 months ago (2014-07-14 17:35:07 UTC) #6
dcheng
https://codereview.chromium.org/357043006/diff/100001/content/renderer/render_frame_proxy.cc File content/renderer/render_frame_proxy.cc (right): https://codereview.chromium.org/357043006/diff/100001/content/renderer/render_frame_proxy.cc#newcode188 content/renderer/render_frame_proxy.cc:188: if (render_frame) On 2014/07/14 17:35:07, ncarter wrote: > On ...
6 years, 5 months ago (2014-07-15 18:44:15 UTC) #7
ncarter (slow)
PTAL https://codereview.chromium.org/357043006/diff/140001/content/renderer/render_frame_proxy.cc File content/renderer/render_frame_proxy.cc (right): https://codereview.chromium.org/357043006/diff/140001/content/renderer/render_frame_proxy.cc#newcode36 content/renderer/render_frame_proxy.cc:36: int frame_routing_id) { On 2014/07/15 18:44:14, dcheng (OOO) ...
6 years, 5 months ago (2014-07-16 01:13:53 UTC) #8
dcheng
lgtm
6 years, 5 months ago (2014-07-16 01:22:23 UTC) #9
ncarter (slow)
+jam -- please have a look
6 years, 5 months ago (2014-07-16 01:24:41 UTC) #10
jam
lgtm
6 years, 5 months ago (2014-07-16 06:03:17 UTC) #11
ncarter (slow)
The CQ bit was checked by nick@chromium.org
6 years, 5 months ago (2014-07-16 17:49:15 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/nick@chromium.org/357043006/160001
6 years, 5 months ago (2014-07-16 17:55:53 UTC) #13
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: chromium_presubmit on tryserver.chromium ...
6 years, 5 months ago (2014-07-16 19:02:58 UTC) #14
commit-bot: I haz the power
Change committed as 283572
6 years, 5 months ago (2014-07-16 23:23:12 UTC) #15
viettrungluu
On 2014/07/16 23:23:12, I haz the power (commit-bot) wrote: > Change committed as 283572 ASan ...
6 years, 5 months ago (2014-07-17 01:33:03 UTC) #16
viettrungluu
On 2014/07/17 01:33:03, viettrungluu wrote: > On 2014/07/16 23:23:12, I haz the power (commit-bot) wrote: ...
6 years, 5 months ago (2014-07-17 01:38:53 UTC) #17
ncarter (slow)
Daniel, please take another look -- most recent patch set has the fix we discussed.
6 years, 5 months ago (2014-07-17 18:39:33 UTC) #18
dcheng
lgtm May be worth adding a short comment that if the message was handled, |this| ...
6 years, 5 months ago (2014-07-17 18:42:12 UTC) #19
ncarter (slow)
Done.
6 years, 5 months ago (2014-07-17 18:47:32 UTC) #20
ncarter (slow)
The CQ bit was checked by nick@chromium.org
6 years, 5 months ago (2014-07-17 18:47:42 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/nick@chromium.org/357043006/220001
6 years, 5 months ago (2014-07-17 18:49:03 UTC) #22
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_chromium_rel on tryserver.chromium ...
6 years, 5 months ago (2014-07-17 23:37:01 UTC) #23
commit-bot: I haz the power
6 years, 5 months ago (2014-07-18 01:34:42 UTC) #24
Message was sent while issue was closed.
Change committed as 283965

Powered by Google App Engine
This is Rietveld 408576698