|
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
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
|
Total messages: 12 (0 generated)
|