OLD | NEW |
| (Empty) |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef COMPONENTS_NETWORK_HINTS_COMMON_NETWORK_HINTS_PARAM_TRAITS_H_ | |
6 #define COMPONENTS_NETWORK_HINTS_COMMON_NETWORK_HINTS_PARAM_TRAITS_H_ | |
7 | |
8 #include <string> | |
9 #include <vector> | |
10 | |
11 #include "components/network_hints/common/network_hints_common.h" | |
12 #include "ipc/ipc_message_macros.h" | |
13 #include "ipc/ipc_message_utils.h" | |
14 #include "url/ipc/url_param_traits.h" | |
15 | |
16 namespace IPC { | |
17 | |
18 template <> | |
19 struct ParamTraits<network_hints::LookupRequest> { | |
20 typedef network_hints::LookupRequest param_type; | |
21 static void GetSize(base::PickleSizer* s, const param_type& p); | |
22 static void Write(base::Pickle* m, const param_type& p); | |
23 static bool Read(const base::Pickle* m, | |
24 base::PickleIterator* iter, | |
25 param_type* r); | |
26 static void Log(const param_type& p, std::string* l); | |
27 }; | |
28 | |
29 } // namespace IPC | |
30 | |
31 #endif // COMPONENTS_NETWORK_HINTS_COMMON_NETWORK_HINTS_PARAM_TRAITS_H_ | |
OLD | NEW |