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

Unified Diff: net/proxy/mojo_type_converters.h

Issue 896203003: Implement utility-side proxy resolver Mojo service. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@proxy-diffbase
Patch Set: fix windows compile Created 5 years, 10 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
« no previous file with comments | « net/proxy/mojo_proxy_resolver_impl_unittest.cc ('k') | net/proxy/mojo_type_converters.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/proxy/mojo_type_converters.h
diff --git a/net/proxy/mojo_type_converters.h b/net/proxy/mojo_type_converters.h
new file mode 100644
index 0000000000000000000000000000000000000000..3ab9258ab5c780a4a758bded7f0263ceb9251c04
--- /dev/null
+++ b/net/proxy/mojo_type_converters.h
@@ -0,0 +1,29 @@
+// 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_TYPE_CONVERTERS_H_
+#define NET_PROXY_MOJO_TYPE_CONVERTERS_H_
+
+#include "net/interfaces/proxy_resolver_service.mojom.h"
+#include "third_party/mojo/src/mojo/public/cpp/bindings/type_converter.h"
+
+namespace net {
+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);
+};
+
+} // namespace mojo
+
+#endif // NET_PROXY_MOJO_TYPE_CONVERTERS_H_
« no previous file with comments | « net/proxy/mojo_proxy_resolver_impl_unittest.cc ('k') | net/proxy/mojo_type_converters.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698