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

Side by Side Diff: net/dns/mojo_type_converters.h

Issue 904313003: Implement utility-side host resolver Mojo client. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mojo-proxy-resolver
Patch Set: 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/dns/host_resolver_mojo_unittest.cc ('k') | net/dns/mojo_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_DNS_MOJO_TYPE_CONVERTERS_H_ 5 #ifndef NET_DNS_MOJO_TYPE_CONVERTERS_H_
6 #define NET_DNS_MOJO_TYPE_CONVERTERS_H_ 6 #define NET_DNS_MOJO_TYPE_CONVERTERS_H_
7 7
8 #include "net/dns/host_resolver.h" 8 #include "net/dns/host_resolver.h"
9 #include "net/interfaces/host_resolver_service.mojom.h" 9 #include "net/interfaces/host_resolver_service.mojom.h"
10 10
11 namespace mojo { 11 namespace mojo {
12 12
13 template <> 13 template <>
14 struct TypeConverter<net::HostResolver::RequestInfo, 14 struct TypeConverter<net::HostResolver::RequestInfo,
15 net::interfaces::HostResolverRequestInfo> { 15 net::interfaces::HostResolverRequestInfo> {
16 static net::HostResolver::RequestInfo Convert( 16 static net::HostResolver::RequestInfo Convert(
17 const net::interfaces::HostResolverRequestInfo& obj); 17 const net::interfaces::HostResolverRequestInfo& obj);
18 }; 18 };
19 19
20 template <> 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 <>
21 struct TypeConverter<net::interfaces::AddressListPtr, net::AddressList> { 28 struct TypeConverter<net::interfaces::AddressListPtr, net::AddressList> {
22 static net::interfaces::AddressListPtr Convert(const net::AddressList& obj); 29 static net::interfaces::AddressListPtr Convert(const net::AddressList& obj);
23 }; 30 };
24 31
25 template <> 32 template <>
26 struct TypeConverter<net::AddressList, net::interfaces::AddressList> { 33 struct TypeConverter<net::AddressList, net::interfaces::AddressList> {
27 static net::AddressList Convert(const net::interfaces::AddressList& obj); 34 static net::AddressList Convert(const net::interfaces::AddressList& obj);
28 }; 35 };
29 36
30 } // namespace mojo 37 } // namespace mojo
31 38
32 #endif // NET_DNS_MOJO_TYPE_CONVERTERS_H_ 39 #endif // NET_DNS_MOJO_TYPE_CONVERTERS_H_
OLDNEW
« no previous file with comments | « net/dns/host_resolver_mojo_unittest.cc ('k') | net/dns/mojo_type_converters.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698