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

Unified Diff: chrome/common/prerender_messages.h

Issue 2179903005: [Prerender] Change IPC from bool to enum for more prerender modes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@prefetchProto
Patch Set: Rebase Created 4 years, 4 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
« no previous file with comments | « chrome/browser/prerender/prerender_contents.cc ('k') | chrome/common/prerender_types.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/prerender_messages.h
diff --git a/chrome/common/prerender_messages.h b/chrome/common/prerender_messages.h
index a9ca9f6d9609f711ef6e508ad8c142c15245ba2c..43066a717dbb515a0205c6bb6949fd2ea302fcc2 100644
--- a/chrome/common/prerender_messages.h
+++ b/chrome/common/prerender_messages.h
@@ -6,6 +6,7 @@
#include <stdint.h>
+#include "chrome/common/prerender_types.h"
#include "content/public/common/referrer.h"
#include "ipc/ipc_message.h"
#include "ipc/ipc_message_macros.h"
@@ -16,6 +17,9 @@
#define IPC_MESSAGE_START PrerenderMsgStart
+IPC_ENUM_TRAITS_MAX_VALUE(prerender::PrerenderMode,
+ prerender::PRERENDER_MODE_COUNT - 1)
+
// PrerenderLinkManager Messages
// These are messages sent from the renderer to the browser in
// relation to <link rel=prerender> elements.
@@ -47,10 +51,9 @@ IPC_MESSAGE_CONTROL1(PrerenderHostMsg_AbandonLinkRelPrerender,
// 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.
-IPC_MESSAGE_ROUTED1(PrerenderMsg_SetIsPrerendering,
- bool /* whether the RenderView is prerendering */)
+// before any navigation occurs, and only set to NO_PRERENDER at most once after
+// that.
+IPC_MESSAGE_ROUTED1(PrerenderMsg_SetIsPrerendering, prerender::PrerenderMode)
// Signals to launcher that a prerender is running.
IPC_MESSAGE_CONTROL1(PrerenderMsg_OnPrerenderStart,
« no previous file with comments | « chrome/browser/prerender/prerender_contents.cc ('k') | chrome/common/prerender_types.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698