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_TYPE_CONVERTERS_H_ | |
6 #define NET_PROXY_MOJO_TYPE_CONVERTERS_H_ | |
7 | |
8 #include "net/interfaces/proxy_resolver_service.mojom.h" | |
9 #include "third_party/mojo/src/mojo/public/cpp/bindings/type_converter.h" | |
10 | |
11 namespace net { | |
12 class ProxyServer; | |
13 } | |
14 | |
15 namespace mojo { | |
16 | |
17 template <> | |
18 struct TypeConverter<net::interfaces::ProxyServerPtr, net::ProxyServer> { | |
19 static net::interfaces::ProxyServerPtr Convert(const net::ProxyServer& obj); | |
20 }; | |
21 | |
22 template <> | |
23 struct TypeConverter<net::ProxyServer, net::interfaces::ProxyServerPtr> { | |
24 static net::ProxyServer Convert(const net::interfaces::ProxyServerPtr& obj); | |
25 }; | |
26 | |
27 } // namespace mojo | |
28 | |
29 #endif // NET_PROXY_MOJO_TYPE_CONVERTERS_H_ | |
OLD | NEW |