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 // Multiply-included file, no traditional include guard. | |
Julia Tuttle
2016/07/18 14:39:29
Why? Unless I'm misreading, there are no declarati
tibell
2016/07/19 01:55:36
Done.
| |
6 #include <string> | |
7 #include <vector> | |
8 | |
9 #include "components/network_hints/common/network_hints_common.h" | |
10 #include "ipc/ipc_message_macros.h" | |
11 #include "ipc/ipc_message_utils.h" | |
12 #include "url/ipc/url_param_traits.h" | |
13 | |
14 // Singly-included section for custom IPC traits. | |
15 #ifndef COMPONENTS_NETWORK_HINTS_COMMON_NETWORK_HINTS_PARAM_TRAITS_H_ | |
16 #define COMPONENTS_NETWORK_HINTS_COMMON_NETWORK_HINTS_PARAM_TRAITS_H_ | |
17 | |
18 namespace IPC { | |
19 | |
20 template <> | |
21 struct ParamTraits<network_hints::LookupRequest> { | |
22 typedef network_hints::LookupRequest param_type; | |
23 static void GetSize(base::PickleSizer* s, const param_type& p); | |
24 static void Write(base::Pickle* m, const param_type& p); | |
25 static bool Read(const base::Pickle* m, | |
26 base::PickleIterator* iter, | |
27 param_type* r); | |
28 static void Log(const param_type& p, std::string* l); | |
29 }; | |
30 | |
31 } // namespace IPC | |
32 | |
33 #endif // COMPONENTS_NETWORK_HINTS_COMMON_NETWORK_HINTS_PARAM_TRAITS_H_ | |
OLD | NEW |