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

Side by Side 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, 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Multiply-included file, no traditional include guard. 5 // Multiply-included file, no traditional include guard.
6 #include <string> 6 #include <string>
7 #include <vector> 7 #include <vector>
8 8
9 #include "components/dns_prefetch/common/prefetch_common.h" 9 #include "components/network_hints/common/network_hints_common.h"
10 #include "ipc/ipc_message_macros.h" 10 #include "ipc/ipc_message_macros.h"
11 #include "ipc/ipc_message_utils.h" 11 #include "ipc/ipc_message_utils.h"
12 12
13 // Singly-included section for custom IPC traits. 13 // Singly-included section for custom IPC traits.
14 #ifndef COMPONENTS_DNS_PREFETCH_COMMON_PREFETCH_MESSAGES_H_ 14 #ifndef COMPONENTS_NETWORK_HINTS_COMMON_NETWORK_HINTS_MESSAGES_H_
15 #define COMPONENTS_DNS_PREFETCH_COMMON_PREFETCH_MESSAGES_H_ 15 #define COMPONENTS_NETWORK_HINTS_COMMON_NETWORK_HINTS_MESSAGES_H_
16 16
17 namespace IPC { 17 namespace IPC {
18 18
19 template <> 19 template <>
20 struct ParamTraits<dns_prefetch::LookupRequest> { 20 struct ParamTraits<network_hints::LookupRequest> {
21 typedef dns_prefetch::LookupRequest param_type; 21 typedef network_hints::LookupRequest param_type;
22 static void Write(Message* m, const param_type& p); 22 static void Write(Message* m, const param_type& p);
23 static bool Read(const Message* m, PickleIterator* iter, param_type* r); 23 static bool Read(const Message* m, PickleIterator* iter, param_type* r);
24 static void Log(const param_type& p, std::string* l); 24 static void Log(const param_type& p, std::string* l);
25 }; 25 };
26 26
27 } // namespace IPC 27 } // namespace IPC
28 28
29 #endif // COMPONENTS_DNS_PREFETCH_COMMON_PREFETCH_MESSAGES_H_ 29 #endif // COMPONENTS_NETWORK_HINTS_COMMON_NETWORK_HINTS_MESSAGES_H_
30 30
31 #define IPC_MESSAGE_START DnsPrefetchMsgStart 31 #define IPC_MESSAGE_START DnsPrefetchMsgStart
32 32
33 //----------------------------------------------------------------------------- 33 //-----------------------------------------------------------------------------
34 // Host messages 34 // Host messages
35 // These are messages sent from the renderer process to the browser process. 35 // These are messages sent from the renderer process to the browser process.
36 36
37 // Request for a DNS prefetch of the names in the array. 37 // Request for a DNS prefetch of the names in the array.
38 // NameList is typedef'ed std::vector<std::string> 38 // NameList is typedef'ed std::vector<std::string>
39 IPC_MESSAGE_CONTROL1(DnsPrefetchMsg_RequestPrefetch, 39 IPC_MESSAGE_CONTROL1(DnsPrefetchMsg_RequestPrefetch,
40 dns_prefetch::LookupRequest) 40 network_hints::LookupRequest)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698