summaryrefslogtreecommitdiffstats
path: root/chrome/common
diff options
context:
space:
mode:
authorgavinp@chromium.org <gavinp@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-12-15 21:45:18 +0000
committergavinp@chromium.org <gavinp@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-12-15 21:45:18 +0000
commit2610170d745f256d0316a936d0907e02b279d8bd (patch)
treead2be6594e2ae6ad54e6cb0b451716565d9f40cd /chrome/common
parentaeb5ccec77fbc0691e766ee80b7c4f4efb79bd9d (diff)
downloadchromium_src-2610170d745f256d0316a936d0907e02b279d8bd.zip
chromium_src-2610170d745f256d0316a936d0907e02b279d8bd.tar.gz
chromium_src-2610170d745f256d0316a936d0907e02b279d8bd.tar.bz2
Make PrerenderHandle an observer of PrerenderContents.
The big implication of this is that PrerenderLinkManager is an observer of PrerenderHandle, and so messaging to/from the browser process about prerenders ends up mostly in the same place. Interestingly, we basically can toss out the pending_prerenders_ list in the PrerenderManager; the only thing it bought us was tracking cancelation, which is now done with a bool in PrerenderHandle, just as easily. The earlier work on the lifetime of PrerenderContents and PrerenderHandle was building up to this. This CL depends on https://codereview.chromium.org/11348357/ , and can't land until after it. R=mmenke@chromium.org BUG=None Review URL: https://chromiumcodereview.appspot.com/11316311 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@173322 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common')
-rw-r--r--chrome/common/prerender_messages.h15
1 files changed, 10 insertions, 5 deletions
diff --git a/chrome/common/prerender_messages.h b/chrome/common/prerender_messages.h
index 848476e..c5d6b2a 100644
--- a/chrome/common/prerender_messages.h
+++ b/chrome/common/prerender_messages.h
@@ -45,10 +45,15 @@ IPC_MESSAGE_CONTROL1(PrerenderHostMsg_AbandonLinkRelPrerender,
IPC_MESSAGE_ROUTED1(PrerenderMsg_SetIsPrerendering,
bool /* whether the RenderView is prerendering */)
-// Specifies that a URL is currently being prerendered.
-IPC_MESSAGE_CONTROL1(PrerenderMsg_AddPrerenderURL,
- GURL /* url */)
+// Signals to launcher that a prerender is running.
+IPC_MESSAGE_CONTROL1(PrerenderMsg_OnPrerenderStart,
+ int /* prerender_id */)
-// Specifies that a URL is no longer being prerendered.
-IPC_MESSAGE_CONTROL1(PrerenderMsg_RemovePrerenderURL,
+// Signals to a launcher that a new alias has been added to a prerender.
+IPC_MESSAGE_CONTROL2(PrerenderMsg_OnPrerenderAddAlias,
+ int /* prerender_id */,
GURL /* url */)
+
+// Signals to a launcher that a prerender is no longer running.
+IPC_MESSAGE_CONTROL1(PrerenderMsg_OnPrerenderStop,
+ int /* prerender_id */)