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

Side by Side Diff: components/network_hints/public/cpp/network_hints_param_traits.h

Issue 2179693002: Revert of Convert network hints to Mojo (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698