Index: components/network_hints/public/cpp/network_hints_param_traits.h |
diff --git a/ui/gfx/ipc/color/gfx_param_traits.h b/components/network_hints/public/cpp/network_hints_param_traits.h |
similarity index 51% |
copy from ui/gfx/ipc/color/gfx_param_traits.h |
copy to components/network_hints/public/cpp/network_hints_param_traits.h |
index 9fa41f36f92349203dbc2bbbf0445c1aad81c90e..db9b73aa2e9df7716db137ae60b2f8d16cc5be49 100644 |
--- a/ui/gfx/ipc/color/gfx_param_traits.h |
+++ b/components/network_hints/public/cpp/network_hints_param_traits.h |
@@ -1,25 +1,23 @@ |
-// Copyright 2016 The Chromium Authors. All rights reserved. |
+// Copyright 2014 The Chromium Authors. All rights reserved. |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
-#ifndef UI_GFX_IPC_COLOR_GFX_PARAM_TRAITS_H_ |
-#define UI_GFX_IPC_COLOR_GFX_PARAM_TRAITS_H_ |
+#ifndef COMPONENTS_NETWORK_HINTS_COMMON_NETWORK_HINTS_PARAM_TRAITS_H_ |
+#define COMPONENTS_NETWORK_HINTS_COMMON_NETWORK_HINTS_PARAM_TRAITS_H_ |
-#include "ipc/ipc_message_utils.h" |
-#include "ipc/param_traits_macros.h" |
-#include "ipc/ipc_message_macros.h" |
-#include "ui/gfx/color_space.h" |
-#include "ui/gfx/ipc/color/gfx_ipc_color_export.h" |
+#include <string> |
+#include <vector> |
-namespace gfx { |
-class ColorSpace; |
-} |
+#include "components/network_hints/common/network_hints_common.h" |
+#include "ipc/ipc_message_macros.h" |
+#include "ipc/ipc_message_utils.h" |
+#include "url/ipc/url_param_traits.h" |
namespace IPC { |
template <> |
-struct GFX_IPC_COLOR_EXPORT ParamTraits<gfx::ColorSpace> { |
- typedef gfx::ColorSpace param_type; |
+struct ParamTraits<network_hints::LookupRequest> { |
+ typedef network_hints::LookupRequest param_type; |
static void GetSize(base::PickleSizer* s, const param_type& p); |
static void Write(base::Pickle* m, const param_type& p); |
static bool Read(const base::Pickle* m, |
@@ -30,4 +28,4 @@ struct GFX_IPC_COLOR_EXPORT ParamTraits<gfx::ColorSpace> { |
} // namespace IPC |
-#endif // UI_GFX_IPC_COLOR_GFX_PARAM_TRAITS_H_ |
+#endif // COMPONENTS_NETWORK_HINTS_COMMON_NETWORK_HINTS_PARAM_TRAITS_H_ |