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

Unified Diff: chrome/common/prerender_messages.h

Issue 9875026: **NOTFORLANDING** New link rel=prerender API (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: patch sets 3-7 against trunk, for combined browsing 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..416e516e033c3c03823f737e7df6408ad478401b 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 "ui/gfx/size.h"
+#include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebReferrerPolicy.h"
#define IPC_MESSAGE_START PrerenderMsgStart
+// Prerender Link Manager Messages
+// 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 WebKit */,
+ 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 WebKit */)
+
+// Notifies on unloading a <link rel=prerender> element from a frame.
+IPC_MESSAGE_CONTROL1(PrerenderHostMsg_AbandonPrerender,
+ int /* id, assigned by WebKit */)
+
+// Prerender View Host Messages
+// 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