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

Unified Diff: components/network_hints/common/network_hints_messages.h

Issue 2043083002: Speculatively launch Service Workers on mouse/touch events. [2/5] (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: revert BUILD.gn Created 4 years, 5 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: components/network_hints/common/network_hints_messages.h
diff --git a/components/network_hints/common/network_hints_messages.h b/components/network_hints/common/network_hints_messages.h
index 82fce8f0f93c62e2f44eab49d905d9bd6f27ef1a..bc4d163a4d1e26041977e3da234acd88fc5e3f38 100644
--- a/components/network_hints/common/network_hints_messages.h
+++ b/components/network_hints/common/network_hints_messages.h
@@ -9,6 +9,7 @@
#include "components/network_hints/common/network_hints_common.h"
#include "ipc/ipc_message_macros.h"
#include "ipc/ipc_message_utils.h"
+#include "third_party/WebKit/public/platform/WebNavigationHintType.h"
#include "url/ipc/url_param_traits.h"
// Singly-included section for custom IPC traits.
@@ -33,6 +34,9 @@ struct ParamTraits<network_hints::LookupRequest> {
#define IPC_MESSAGE_START NetworkHintsMsgStart
+IPC_ENUM_TRAITS_MAX_VALUE(blink::WebNavigationHintType,
+ blink::WebNavigationHintType::Last)
+
//-----------------------------------------------------------------------------
// Host messages
// These are messages sent from the renderer process to the browser process.
@@ -48,3 +52,8 @@ IPC_MESSAGE_CONTROL3(NetworkHintsMsg_Preconnect,
GURL /* preconnect target url */,
bool /* Does connection have its credentials flag set */,
int /* number of connections */)
+
+// Request to trigger possible optimizations for navigation.
+IPC_MESSAGE_CONTROL2(NetworkHintsMsg_NavigationHint,
+ GURL /* document url */,
+ blink::WebNavigationHintType /* navigation hint type */)
« no previous file with comments | « components/network_hints/common/OWNERS ('k') | components/network_hints/renderer/prescient_networking_dispatcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698