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

Side by Side Diff: net/proxy/mojo_proxy_type_converters.h

Issue 917863005: Implementation of ProxyResolver that uses a Mojo service. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@sam-v8-pac-utility-proxy
Patch Set: Fix build. Created 5 years, 9 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
« no previous file with comments | « net/proxy/mojo_proxy_resolver_factory.h ('k') | net/proxy/mojo_proxy_type_converters.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 NET_PROXY_MOJO_PROXY_TYPE_CONVERTERS_H_ 5 #ifndef NET_PROXY_MOJO_PROXY_TYPE_CONVERTERS_H_
6 #define NET_PROXY_MOJO_PROXY_TYPE_CONVERTERS_H_ 6 #define NET_PROXY_MOJO_PROXY_TYPE_CONVERTERS_H_
7 7
8 #include "net/interfaces/proxy_resolver_service.mojom.h" 8 #include "net/interfaces/proxy_resolver_service.mojom.h"
9 #include "third_party/mojo/src/mojo/public/cpp/bindings/type_converter.h" 9 #include "third_party/mojo/src/mojo/public/cpp/bindings/type_converter.h"
10 10
11 namespace net { 11 namespace net {
12 class ProxyInfo;
12 class ProxyServer; 13 class ProxyServer;
13 } 14 }
14 15
15 namespace mojo { 16 namespace mojo {
16 17
17 template <> 18 template <>
18 struct TypeConverter<net::interfaces::ProxyServerPtr, net::ProxyServer> { 19 struct TypeConverter<net::interfaces::ProxyServerPtr, net::ProxyServer> {
19 static net::interfaces::ProxyServerPtr Convert(const net::ProxyServer& obj); 20 static net::interfaces::ProxyServerPtr Convert(const net::ProxyServer& obj);
20 }; 21 };
21 22
22 template <> 23 template <>
23 struct TypeConverter<net::ProxyServer, net::interfaces::ProxyServerPtr> { 24 struct TypeConverter<net::ProxyServer, net::interfaces::ProxyServerPtr> {
24 static net::ProxyServer Convert(const net::interfaces::ProxyServerPtr& obj); 25 static net::ProxyServer Convert(const net::interfaces::ProxyServerPtr& obj);
25 }; 26 };
26 27
28 template <>
29 struct TypeConverter<net::ProxyInfo,
30 mojo::Array<net::interfaces::ProxyServerPtr>> {
31 static net::ProxyInfo Convert(
32 const mojo::Array<net::interfaces::ProxyServerPtr>& obj);
33 };
34
27 } // namespace mojo 35 } // namespace mojo
28 36
29 #endif // NET_PROXY_MOJO_PROXY_TYPE_CONVERTERS_H_ 37 #endif // NET_PROXY_MOJO_PROXY_TYPE_CONVERTERS_H_
OLDNEW
« no previous file with comments | « net/proxy/mojo_proxy_resolver_factory.h ('k') | net/proxy/mojo_proxy_type_converters.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698