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

Unified Diff: components/predictor/common/predictor_messages.h

Issue 644123002: Componentize renderer side of DNS prefetching. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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/predictor/common/predictor_messages.h
diff --git a/components/predictor/common/predictor_messages.h b/components/predictor/common/predictor_messages.h
new file mode 100644
index 0000000000000000000000000000000000000000..7928b3b901d1523e8cd17720f632475c1df6370c
--- /dev/null
+++ b/components/predictor/common/predictor_messages.h
@@ -0,0 +1,21 @@
+// Copyright (c) 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+// Multiply-included file, no traditional include guard.
+#include <string>
+#include <vector>
+
+#include "ipc/ipc_message_macros.h"
+#include "ipc/ipc_message_utils.h"
+
+#define IPC_MESSAGE_START DnsPredictorMsgStart
+
+//-----------------------------------------------------------------------------
+// Host messages
+// These are messages sent from the browser to the renderer process.
+
+// Request for a DNS prefetch of the names in the array.
+// NameList is typedef'ed std::vector<std::string>
+IPC_MESSAGE_CONTROL1(DnsPredictorMsg_RequestPrefetch,
+ std::vector<std::string> /* hostnames */)
palmer 2014/10/13 23:56:21 Does the receiver of this message set any hard lim
gunsch 2014/10/14 15:54:38 As far as I can tell, in Chrome's current implemen

Powered by Google App Engine
This is Rietveld 408576698