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

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

Issue 2144533002: Convert network hints to Mojo (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add untracked dependency on mojom Created 4 years, 5 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 2016 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 #ifndef UI_GFX_IPC_COLOR_GFX_PARAM_TRAITS_H_ 5 #ifndef COMPONENTS_NETWORK_HINTS_COMMON_NETWORK_HINTS_PARAM_TRAITS_H_
6 #define UI_GFX_IPC_COLOR_GFX_PARAM_TRAITS_H_ 6 #define COMPONENTS_NETWORK_HINTS_COMMON_NETWORK_HINTS_PARAM_TRAITS_H_
7 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"
8 #include "ipc/ipc_message_utils.h" 13 #include "ipc/ipc_message_utils.h"
9 #include "ipc/param_traits_macros.h" 14 #include "url/ipc/url_param_traits.h"
10 #include "ipc/ipc_message_macros.h"
11 #include "ui/gfx/color_space.h"
12 #include "ui/gfx/ipc/color/gfx_ipc_color_export.h"
13
14 namespace gfx {
15 class ColorSpace;
16 }
17 15
18 namespace IPC { 16 namespace IPC {
19 17
20 template <> 18 template <>
21 struct GFX_IPC_COLOR_EXPORT ParamTraits<gfx::ColorSpace> { 19 struct ParamTraits<network_hints::LookupRequest> {
22 typedef gfx::ColorSpace param_type; 20 typedef network_hints::LookupRequest param_type;
23 static void GetSize(base::PickleSizer* s, const param_type& p); 21 static void GetSize(base::PickleSizer* s, const param_type& p);
24 static void Write(base::Pickle* m, const param_type& p); 22 static void Write(base::Pickle* m, const param_type& p);
25 static bool Read(const base::Pickle* m, 23 static bool Read(const base::Pickle* m,
26 base::PickleIterator* iter, 24 base::PickleIterator* iter,
27 param_type* r); 25 param_type* r);
28 static void Log(const param_type& p, std::string* l); 26 static void Log(const param_type& p, std::string* l);
29 }; 27 };
30 28
31 } // namespace IPC 29 } // namespace IPC
32 30
33 #endif // UI_GFX_IPC_COLOR_GFX_PARAM_TRAITS_H_ 31 #endif // COMPONENTS_NETWORK_HINTS_COMMON_NETWORK_HINTS_PARAM_TRAITS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698