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

Unified 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 side-by-side diff with in-line comments
Download patch
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_

Powered by Google App Engine
This is Rietveld 408576698