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

Issue 9623018: Prerendered pages are swapped in at browser::Navigate time. (Closed)

Created:
8 years, 9 months ago by cbentzel
Modified:
8 years, 9 months ago
Reviewers:
Peter Kasting, jam, mmenke
CC:
chromium-reviews, cbentzel+watch_chromium.org, creis+watch_chromium.org, tburkard+watch_chromium.org, ajwong+watch_chromium.org, Avi (use Gerrit), joi+watch-content_chromium.org, feature-media-reviews_chromium.org, dominich+watch_chromium.org, eroman, darin-cc_chromium.org, brettw-cc_chromium.org, mmenke
Visibility:
Public.

Description

Prerendered pages are swapped in at browser::Navigate time. They used to get swapped in by observing provisional loads. This is being changed to Navigate so renderer-issued navigations into a prerender can be handled with the same mechanism that is used to handle renderer-issued navigations which need to cross process boundaries, such as clicking into a hosted app. For browser issued navigations, this means that we will immediately swap in the prerender, instead of sending a Navigate message to the render view and swapping in on the provisional load statement. For renderer issued navigations, decidePolicyForNavigation will ultimately cancel the navigation in the renderer and send an OpenURL up to the browser process. In order to make the renderer know that a navigation could be prerendered, a set of prerendered URLs need to be sent to a render process. BUG=104493 TEST=Existing browser tests, manual tests that omnibox prerenders work. There should be no user-visible changes. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=125836

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+312 lines, -83 lines) Patch
M chrome/browser/prerender/prerender_browsertest.cc View 7 chunks +58 lines, -16 lines 0 comments Download
M chrome/browser/prerender/prerender_contents.h View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/prerender/prerender_contents.cc View 7 chunks +42 lines, -4 lines 0 comments Download
M chrome/browser/prerender/prerender_manager.h View 1 chunk +4 lines, -8 lines 0 comments Download
M chrome/browser/prerender/prerender_manager.cc View 4 chunks +7 lines, -10 lines 0 comments Download
M chrome/browser/prerender/prerender_manager_unittest.cc View 1 chunk +1 line, -7 lines 0 comments Download
M chrome/browser/prerender/prerender_tab_helper.h View 1 chunk +0 lines, -6 lines 0 comments Download
M chrome/browser/prerender/prerender_tab_helper.cc View 2 chunks +0 lines, -14 lines 0 comments Download
M chrome/browser/ui/browser_navigator.cc View 3 chunks +17 lines, -0 lines 1 comment Download
M chrome/browser/ui/webui/net_internals/net_internals_ui_browsertest.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_renderer.gypi View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/common/common_message_generator.h View 1 chunk +1 line, -0 lines 0 comments Download
A chrome/common/prerender_messages.h View 1 chunk +25 lines, -0 lines 0 comments Download
M chrome/common/render_messages.h View 1 chunk +0 lines, -6 lines 0 comments Download
M chrome/renderer/chrome_content_renderer_client.h View 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/renderer/chrome_content_renderer_client.cc View 4 chunks +12 lines, -0 lines 0 comments Download
M chrome/renderer/chrome_render_view_observer.cc View 2 chunks +2 lines, -1 line 0 comments Download
M chrome/renderer/plugins/plugin_placeholder.cc View 2 chunks +2 lines, -1 line 0 comments Download
A chrome/renderer/prerender/prerender_dispatcher.h View 1 chunk +41 lines, -0 lines 0 comments Download
A chrome/renderer/prerender/prerender_dispatcher.cc View 1 chunk +60 lines, -0 lines 0 comments Download
M chrome/renderer/prerender/prerender_helper.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/renderer/prerender/prerender_webmediaplayer.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/test/data/prerender/prerender_loader.html View 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/test/data/prerender/prerender_loader_with_session_storage.html View 1 chunk +1 line, -1 line 0 comments Download
M chrome/test/data/prerender/prerender_loader_with_unload.html View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/tab_contents/tab_contents.h View 3 chunks +8 lines, -0 lines 0 comments Download
M content/browser/tab_contents/tab_contents.cc View 2 chunks +6 lines, -1 line 0 comments Download
M content/browser/tab_contents/tab_contents_view_helper.cc View 1 chunk +1 line, -0 lines 0 comments Download
M content/public/browser/web_contents.h View 1 chunk +3 lines, -0 lines 0 comments Download
M ipc/ipc_message_utils.h View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
cbentzel
John - this is exactly http://codereview.chromium.org/9416031/ But that got hit by a rietveld bug - ...
8 years, 9 months ago (2012-03-07 22:30:46 UTC) #1
jam
lgtm
8 years, 9 months ago (2012-03-07 22:50:15 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/cbentzel@chromium.org/9623018/1
8 years, 9 months ago (2012-03-08 12:28:15 UTC) #3
commit-bot: I haz the power
Presubmit check for 9623018-1 failed and returned exit status 1. Running presubmit commit checks ...
8 years, 9 months ago (2012-03-08 12:28:44 UTC) #4
mmenke
net_internals still LGTM.
8 years, 9 months ago (2012-03-08 12:29:40 UTC) #5
cbentzel
Matt, also need OWNERS approval for net_internals. Same CL as before, just with a fixed ...
8 years, 9 months ago (2012-03-08 12:30:00 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/cbentzel@chromium.org/9623018/1
8 years, 9 months ago (2012-03-08 12:32:21 UTC) #7
commit-bot: I haz the power
Presubmit check for 9623018-1 failed and returned exit status 1. Running presubmit commit checks ...
8 years, 9 months ago (2012-03-08 12:32:34 UTC) #8
cbentzel
+pkasting for browser_navigator.cc change. Peter - this was previously approved by creis and you can ...
8 years, 9 months ago (2012-03-08 12:50:04 UTC) #9
Peter Kasting
If creis is fine with it I am. LGTM http://codereview.chromium.org/9623018/diff/1/chrome/browser/ui/browser_navigator.cc File chrome/browser/ui/browser_navigator.cc (right): http://codereview.chromium.org/9623018/diff/1/chrome/browser/ui/browser_navigator.cc#newcode372 chrome/browser/ui/browser_navigator.cc:372: ...
8 years, 9 months ago (2012-03-08 20:56:38 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/cbentzel@chromium.org/9623018/1
8 years, 9 months ago (2012-03-09 10:41:50 UTC) #11
commit-bot: I haz the power
8 years, 9 months ago (2012-03-09 14:06:52 UTC) #12
Change committed as 125836

Powered by Google App Engine
This is Rietveld 408576698