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

Issue 107893003: Make the renderer-side prerendering code use RenderFrames instead of RenderViews. (Closed)

Created:
7 years ago by jam
Modified:
7 years ago
CC:
chromium-reviews, davidben+watch_chromium.org, cbentzel+watch_chromium.org, tburkard+watch_chromium.org, jam, joi+watch-content_chromium.org, gavinp+prer_chromium.org, dominich+watch_chromium.org, darin-cc_chromium.org, miu+watch_chromium.org, site-isolation-reviews_chromium.org
Visibility:
Public.

Description

Make the renderer-side prerendering code use RenderFrames instead of RenderViews. This is also part of the work of making ContentRendererClient's OverrideCreatePlugin and CreatePluginReplacement take only a RenderFrame. BUG=304341 R=creis@chromium.org, mmenke@chromium.org, tburkard@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=239860

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : #

Patch Set 7 : sync to head #

Total comments: 6

Patch Set 8 : creis review comments #

Total comments: 17

Patch Set 9 : review comments #

Patch Set 10 : sync #

Unified diffs Side-by-side diffs Delta from patch set Stats (+275 lines, -93 lines) Patch
M chrome/browser/prerender/prerender_contents.h View 1 2 3 4 5 6 7 8 9 3 chunks +8 lines, -0 lines 0 comments Download
M chrome/browser/prerender/prerender_contents.cc View 1 2 3 4 5 6 7 8 9 4 chunks +23 lines, -10 lines 0 comments Download
M chrome/browser/prerender/prerender_manager.cc View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -6 lines 0 comments Download
M chrome/chrome_renderer.gypi View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/renderer/chrome_content_renderer_client.h View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/renderer/chrome_content_renderer_client.cc View 1 2 3 4 5 6 7 8 9 5 chunks +9 lines, -7 lines 0 comments Download
A chrome/renderer/chrome_render_frame_observer.h View 1 chunk +27 lines, -0 lines 0 comments Download
A chrome/renderer/chrome_render_frame_observer.cc View 1 chunk +34 lines, -0 lines 0 comments Download
M chrome/renderer/chrome_render_view_observer.h View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -1 line 0 comments Download
M chrome/renderer/chrome_render_view_observer.cc View 1 2 3 4 5 6 7 8 9 4 chunks +4 lines, -15 lines 0 comments Download
M chrome/renderer/plugins/chrome_plugin_placeholder.h View 1 2 3 4 5 6 7 8 9 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/renderer/plugins/chrome_plugin_placeholder.cc View 1 2 3 4 5 6 7 8 9 4 chunks +28 lines, -3 lines 0 comments Download
M chrome/renderer/prerender/prerender_helper.h View 1 2 3 4 5 6 7 8 9 1 chunk +7 lines, -7 lines 0 comments Download
M chrome/renderer/prerender/prerender_helper.cc View 1 2 3 4 5 6 7 8 9 4 chunks +16 lines, -12 lines 0 comments Download
M chrome/renderer/prerender/prerender_media_load_deferrer.h View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -4 lines 0 comments Download
M chrome/renderer/prerender/prerender_media_load_deferrer.cc View 1 2 3 4 5 6 7 8 9 2 chunks +3 lines, -4 lines 0 comments Download
M chrome/renderer/printing/print_web_view_helper.cc View 1 2 3 4 5 6 7 8 9 2 chunks +3 lines, -1 line 0 comments Download
M content/browser/frame_host/frame_tree.h View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -4 lines 0 comments Download
M content/browser/frame_host/frame_tree.cc View 1 2 3 4 5 6 7 8 9 1 chunk +10 lines, -7 lines 0 comments Download
M content/browser/frame_host/render_frame_host_delegate.h View 1 2 3 4 5 6 7 8 9 1 chunk +6 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 2 chunks +6 lines, -3 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.h View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -0 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.cc View 1 2 3 4 5 6 7 8 9 2 chunks +21 lines, -0 lines 0 comments Download
M content/public/browser/web_contents_observer.h View 1 2 3 4 5 6 7 8 9 2 chunks +8 lines, -0 lines 0 comments Download
M content/public/renderer/content_renderer_client.h View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -2 lines 0 comments Download
M content/public/renderer/content_renderer_client.cc View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -2 lines 0 comments Download
M content/public/renderer/render_frame.h View 1 2 3 4 5 6 7 8 9 2 chunks +4 lines, -0 lines 0 comments Download
M content/public/renderer/render_view.h View 1 2 3 4 5 6 7 8 9 2 chunks +4 lines, -0 lines 0 comments Download
M content/renderer/render_frame_impl.h View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/render_frame_impl.cc View 1 2 3 4 5 6 7 8 9 2 chunks +5 lines, -1 line 0 comments Download
M content/renderer/render_view_impl.h View 1 2 3 4 5 6 7 8 9 2 chunks +9 lines, -0 lines 0 comments Download
M content/renderer/render_view_impl.cc View 1 2 3 4 5 6 7 8 9 4 chunks +16 lines, -2 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
jam
Timo: prerendering code Charlie: the rest
7 years ago (2013-12-09 22:36:43 UTC) #1
Charlie Reis
content/ LGTM with the nits below. I'll let Timo handle the chrome/ prerendering stuff. https://codereview.chromium.org/107893003/diff/180001/content/browser/frame_host/frame_tree.h ...
7 years ago (2013-12-10 00:31:48 UTC) #2
jam
https://codereview.chromium.org/107893003/diff/180001/content/browser/frame_host/frame_tree.h File content/browser/frame_host/frame_tree.h (right): https://codereview.chromium.org/107893003/diff/180001/content/browser/frame_host/frame_tree.h#newcode78 content/browser/frame_host/frame_tree.h:78: int64 parent_frame_tree_node_id, On 2013/12/10 00:31:48, creis wrote: > nit: ...
7 years ago (2013-12-10 00:48:42 UTC) #3
tburkard
lgtm but mmenke should take a quick look, too, since he is more familiar with ...
7 years ago (2013-12-10 16:26:26 UTC) #4
mmenke
On 2013/12/10 16:26:26, tburkard wrote: > lgtm > > but mmenke should take a quick ...
7 years ago (2013-12-10 16:27:40 UTC) #5
mmenke
https://codereview.chromium.org/107893003/diff/200001/chrome/browser/prerender/prerender_contents.cc File chrome/browser/prerender/prerender_contents.cc (right): https://codereview.chromium.org/107893003/diff/200001/chrome/browser/prerender/prerender_contents.cc#newcode558 chrome/browser/prerender/prerender_contents.cc:558: render_frame_host->GetRoutingID(), true)); Are there any races here? I'm not ...
7 years ago (2013-12-10 20:56:41 UTC) #6
jam
https://codereview.chromium.org/107893003/diff/200001/chrome/browser/prerender/prerender_contents.cc File chrome/browser/prerender/prerender_contents.cc (right): https://codereview.chromium.org/107893003/diff/200001/chrome/browser/prerender/prerender_contents.cc#newcode558 chrome/browser/prerender/prerender_contents.cc:558: render_frame_host->GetRoutingID(), true)); On 2013/12/10 20:56:41, mmenke wrote: > Are ...
7 years ago (2013-12-10 21:14:17 UTC) #7
mmenke
7 years ago (2013-12-10 21:26:39 UTC) #8
LGTM

https://codereview.chromium.org/107893003/diff/200001/content/browser/web_con...
File content/browser/web_contents/web_contents_impl.cc (right):

https://codereview.chromium.org/107893003/diff/200001/content/browser/web_con...
content/browser/web_contents/web_contents_impl.cc:2773: // happens in
RenderViewCreated.
On 2013/12/10 21:14:17, jam wrote:
> On 2013/12/10 20:56:41, mmenke wrote:
> > Shouldn't this comment be in the WebContentsObserver header?
> 
> I specifically avoided that because it's an implementation detail of content,
> and may change in the future.
> 
> Embedders should only care/know that RenderFrameCreated is called for every
> RenderFrame.

Sorry, I completely misunderstood the comment (I was thinking it meant
RenderFrameCreated was only called for subframes, completely missing the other
call below).

Powered by Google App Engine
This is Rietveld 408576698