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

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

Issue 899883004: Added chrome-side support for link rel=preconnect (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed formatting nit Created 5 years, 10 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 9c52c3ae2d89f6f5cfcdc304693b9480c95b2009..12b1c656e9f475c278fcf7f59438846ed3f5153b 100644
--- a/components/network_hints/common/network_hints_messages.h
+++ b/components/network_hints/common/network_hints_messages.h
@@ -7,6 +7,7 @@
#include <vector>
#include "components/network_hints/common/network_hints_common.h"
+#include "content/public/common/common_param_traits.h"
#include "ipc/ipc_message_macros.h"
#include "ipc/ipc_message_utils.h"
@@ -28,7 +29,7 @@ struct ParamTraits<network_hints::LookupRequest> {
#endif // COMPONENTS_NETWORK_HINTS_COMMON_NETWORK_HINTS_MESSAGES_H_
-#define IPC_MESSAGE_START DnsPrefetchMsgStart
+#define IPC_MESSAGE_START NetworkHintsMsgStart
//-----------------------------------------------------------------------------
// Host messages
@@ -36,5 +37,12 @@ struct ParamTraits<network_hints::LookupRequest> {
// Request for a DNS prefetch of the names in the array.
// NameList is typedef'ed std::vector<std::string>
-IPC_MESSAGE_CONTROL1(DnsPrefetchMsg_RequestPrefetch,
+IPC_MESSAGE_CONTROL1(NetworkHintsMsg_DNSPrefetch,
network_hints::LookupRequest)
+
+
+// Request for preconnect to host providing resource specified by URL
+IPC_MESSAGE_CONTROL2(NetworkHintsMsg_Preconnect,
+ GURL /* preconnect target url */,
+ int /* number of connections */)
+
« no previous file with comments | « components/network_hints/browser/network_hints_message_filter.cc ('k') | components/network_hints/renderer/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698