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_DNS_MOJO_HOST_TYPE_CONVERTERS_H_ | |
6 #define NET_DNS_MOJO_HOST_TYPE_CONVERTERS_H_ | |
7 | |
8 #include "net/dns/host_resolver.h" | |
9 #include "net/interfaces/host_resolver_service.mojom.h" | |
10 | |
11 namespace mojo { | |
12 | |
13 template <> | |
14 struct TypeConverter<net::HostResolver::RequestInfo, | |
15 net::interfaces::HostResolverRequestInfo> { | |
16 static net::HostResolver::RequestInfo Convert( | |
17 const net::interfaces::HostResolverRequestInfo& obj); | |
18 }; | |
19 | |
20 template <> | |
21 struct TypeConverter<net::interfaces::HostResolverRequestInfoPtr, | |
22 net::HostResolver::RequestInfo> { | |
23 static net::interfaces::HostResolverRequestInfoPtr Convert( | |
24 const net::HostResolver::RequestInfo& obj); | |
25 }; | |
26 | |
27 template <> | |
28 struct TypeConverter<net::interfaces::AddressListPtr, net::AddressList> { | |
29 static net::interfaces::AddressListPtr Convert(const net::AddressList& obj); | |
30 }; | |
31 | |
32 template <> | |
33 struct TypeConverter<net::AddressList, net::interfaces::AddressList> { | |
34 static net::AddressList Convert(const net::interfaces::AddressList& obj); | |
35 }; | |
36 | |
37 } // namespace mojo | |
38 | |
39 #endif // NET_DNS_MOJO_HOST_TYPE_CONVERTERS_H_ | |
OLD | NEW |