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

Unified Diff: chrome/common/prerender_messages.h

Issue 10198040: New link rel=prerender api, using WebKit::WebPrerenderingPlatform (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: is this closer? Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/common/prerender_messages.h
diff --git a/chrome/common/prerender_messages.h b/chrome/common/prerender_messages.h
index 4c965a94f9fdeae3a7abb37734a4d1fcf63bd7a0..10aa7101248d727aa6930d3031933d40ae980005 100644
--- a/chrome/common/prerender_messages.h
+++ b/chrome/common/prerender_messages.h
@@ -3,13 +3,41 @@
// found in the LICENSE file.
// Multiply-included message file, no traditional include guard.
+#include "content/public/common/common_param_traits.h"
+#include "content/public/common/referrer.h"
#include "googleurl/src/gurl.h"
#include "ipc/ipc_message.h"
#include "ipc/ipc_message_macros.h"
#include "ipc/ipc_param_traits.h"
+#include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebReferrerPolicy.h"
+#include "ui/gfx/size.h"
#define IPC_MESSAGE_START PrerenderMsgStart
+// Prerender Link Manager Messages
mmenke 2012/05/01 16:23:21 nit: PrerenderLinkManager
gavinp 2012/05/01 18:50:22 Done.
+// These are messages sent from the renderer to the browser in
+// relation to <link rel=prerender> elements.
+
+// Notifies of the insertion of a <link rel=prerender> element in the
+// document.
+IPC_MESSAGE_CONTROL5(PrerenderHostMsg_AddPrerender,
+ int /* id, assigned by WebPrerendererClient */,
+ GURL /* url */,
+ content::Referrer,
+ gfx::Size,
+ int /* render_view_route_id of launcher */)
+
+// Notifies on removal of a <link rel=prerender> element from the document.
+IPC_MESSAGE_CONTROL1(PrerenderHostMsg_CancelPrerender,
+ int /* id, assigned by WebPrerendererClient */)
+
+// Notifies on unloading a <link rel=prerender> element from a frame.
+IPC_MESSAGE_CONTROL1(PrerenderHostMsg_AbandonPrerender,
+ int /* id, assigned by WebPrerendererClient */)
+
+// Prerender View Host Messages
mmenke 2012/05/01 16:23:21 What is a Prerender View Host? Generally (Like ju
gavinp 2012/05/01 18:50:22 Good point. Renamed to PrerenderDispatcher Messag
+// These are messages sent in relation to running prerenders.
+
// Tells a renderer if it's currently being prerendered. Must only be set
// to true before any navigation occurs, and only set to false at most once
// after that.

Powered by Google App Engine
This is Rietveld 408576698