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

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

Issue 892393005: Implement browser-side host resolver Mojo service. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@v8-pac-interfaces
Patch Set: Windows? Again! Created 5 years, 10 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
OLDNEW
(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_INTERFACES_TYPE_CONVERTERS_H_
6 #define NET_INTERFACES_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,
eroman 2015/02/05 19:51:11 What are these about?
Anand Mistry (off Chromium) 2015/02/06 06:32:41 Type converters are the canonical Mojo way to conv
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::AddressListPtr, net::AddressList> {
22 static net::interfaces::AddressListPtr Convert(const net::AddressList& obj);
23 };
24
25 template <>
26 struct TypeConverter<net::AddressList, net::interfaces::AddressList> {
27 static net::AddressList Convert(const net::interfaces::AddressList& obj);
28 };
29
30 } // namespace mojo
31
32 #endif // NET_INTERFACES_TYPE_CONVERTERS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698