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

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: friendship is hard 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..0380dd2e728f08103702967363d9bcc4bd8cd2fb 100644
--- a/chrome/common/prerender_messages.h
+++ b/chrome/common/prerender_messages.h
@@ -3,13 +3,42 @@
// 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
+// PrerenderLinkManager 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,
cbentzel 2012/05/04 15:32:25 Should each of these be AddLinkRelPrerender or som
gavinp 2012/05/04 23:10:51 Done.
+ int /* id, assigned by WebPrerendererClient */,
cbentzel 2012/05/04 15:32:25 nit: prerender_id would be clearer than this descr
gavinp 2012/05/04 23:10:51 Done.
+ 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 */)
+
+// PrerenderDispatcher Messages
+// These are messages sent from the browser to the renderer 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