OLD | NEW |
| (Empty) |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef NET_PROXY_MOJO_PROXY_TYPE_CONVERTERS_H_ | |
6 #define NET_PROXY_MOJO_PROXY_TYPE_CONVERTERS_H_ | |
7 | |
8 #include "mojo/public/cpp/bindings/type_converter.h" | |
9 #include "net/interfaces/proxy_resolver_service.mojom.h" | |
10 | |
11 namespace net { | |
12 class ProxyInfo; | |
13 class ProxyServer; | |
14 } | |
15 | |
16 namespace mojo { | |
17 | |
18 template <> | |
19 struct TypeConverter<net::interfaces::ProxyServerPtr, net::ProxyServer> { | |
20 static net::interfaces::ProxyServerPtr Convert(const net::ProxyServer& obj); | |
21 }; | |
22 | |
23 template <> | |
24 struct TypeConverter<net::ProxyServer, net::interfaces::ProxyServerPtr> { | |
25 static net::ProxyServer Convert(const net::interfaces::ProxyServerPtr& obj); | |
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 | |
35 } // namespace mojo | |
36 | |
37 #endif // NET_PROXY_MOJO_PROXY_TYPE_CONVERTERS_H_ | |
OLD | NEW |