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

Unified Diff: net/proxy/mojo_proxy_type_converters.h

Issue 2083463002: Replace //net TypeConverters with StructTraits. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@type-converter-cleanup--gurl
Patch Set: rebase Created 4 years, 2 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: net/proxy/mojo_proxy_type_converters.h
diff --git a/net/proxy/mojo_proxy_type_converters.h b/net/proxy/mojo_proxy_type_converters.h
deleted file mode 100644
index 51b0e380c666a711190bc912ab71959f07dcde9d..0000000000000000000000000000000000000000
--- a/net/proxy/mojo_proxy_type_converters.h
+++ /dev/null
@@ -1,37 +0,0 @@
-// Copyright 2015 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 NET_PROXY_MOJO_PROXY_TYPE_CONVERTERS_H_
-#define NET_PROXY_MOJO_PROXY_TYPE_CONVERTERS_H_
-
-#include "mojo/public/cpp/bindings/type_converter.h"
-#include "net/interfaces/proxy_resolver_service.mojom.h"
-
-namespace net {
-class ProxyInfo;
-class ProxyServer;
-}
-
-namespace mojo {
-
-template <>
-struct TypeConverter<net::interfaces::ProxyServerPtr, net::ProxyServer> {
- static net::interfaces::ProxyServerPtr Convert(const net::ProxyServer& obj);
-};
-
-template <>
-struct TypeConverter<net::ProxyServer, net::interfaces::ProxyServerPtr> {
- static net::ProxyServer Convert(const net::interfaces::ProxyServerPtr& obj);
-};
-
-template <>
-struct TypeConverter<net::ProxyInfo,
- mojo::Array<net::interfaces::ProxyServerPtr>> {
- static net::ProxyInfo Convert(
- const mojo::Array<net::interfaces::ProxyServerPtr>& obj);
-};
-
-} // namespace mojo
-
-#endif // NET_PROXY_MOJO_PROXY_TYPE_CONVERTERS_H_

Powered by Google App Engine
This is Rietveld 408576698