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

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

Issue 848303005: Renamed the dns_prefetch component to network_predictor (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 5 years, 11 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/dns_prefetch/common/prefetch_messages.h b/components/network_hints/common/network_hints_messages.h
similarity index 70%
rename from components/dns_prefetch/common/prefetch_messages.h
rename to components/network_hints/common/network_hints_messages.h
index d12ac74e2ac5c5a89d432c1f124dfe50a3c87819..9c52c3ae2d89f6f5cfcdc304693b9480c95b2009 100644
--- a/components/dns_prefetch/common/prefetch_messages.h
+++ b/components/network_hints/common/network_hints_messages.h
@@ -6,19 +6,19 @@
#include <string>
#include <vector>
-#include "components/dns_prefetch/common/prefetch_common.h"
+#include "components/network_hints/common/network_hints_common.h"
#include "ipc/ipc_message_macros.h"
#include "ipc/ipc_message_utils.h"
// Singly-included section for custom IPC traits.
-#ifndef COMPONENTS_DNS_PREFETCH_COMMON_PREFETCH_MESSAGES_H_
-#define COMPONENTS_DNS_PREFETCH_COMMON_PREFETCH_MESSAGES_H_
+#ifndef COMPONENTS_NETWORK_HINTS_COMMON_NETWORK_HINTS_MESSAGES_H_
+#define COMPONENTS_NETWORK_HINTS_COMMON_NETWORK_HINTS_MESSAGES_H_
namespace IPC {
template <>
-struct ParamTraits<dns_prefetch::LookupRequest> {
- typedef dns_prefetch::LookupRequest param_type;
+struct ParamTraits<network_hints::LookupRequest> {
+ typedef network_hints::LookupRequest param_type;
static void Write(Message* m, const param_type& p);
static bool Read(const Message* m, PickleIterator* iter, param_type* r);
static void Log(const param_type& p, std::string* l);
@@ -26,7 +26,7 @@ struct ParamTraits<dns_prefetch::LookupRequest> {
} // namespace IPC
-#endif // COMPONENTS_DNS_PREFETCH_COMMON_PREFETCH_MESSAGES_H_
+#endif // COMPONENTS_NETWORK_HINTS_COMMON_NETWORK_HINTS_MESSAGES_H_
#define IPC_MESSAGE_START DnsPrefetchMsgStart
@@ -37,4 +37,4 @@ struct ParamTraits<dns_prefetch::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,
- dns_prefetch::LookupRequest)
+ network_hints::LookupRequest)

Powered by Google App Engine
This is Rietveld 408576698