Index: net/dns/type_converters.h |
diff --git a/net/dns/type_converters.h b/net/dns/type_converters.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..5e2dbaca367a34f33bcd822436f8c5ad6de9df30 |
--- /dev/null |
+++ b/net/dns/type_converters.h |
@@ -0,0 +1,32 @@ |
+// Copyright 2015 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef NET_INTERFACES_TYPE_CONVERTERS_H_ |
+#define NET_INTERFACES_TYPE_CONVERTERS_H_ |
+ |
+#include "net/dns/host_resolver.h" |
+#include "net/interfaces/host_resolver_service.mojom.h" |
+ |
+namespace mojo { |
+ |
+template <> |
+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
|
+ net::interfaces::HostResolverRequestInfo> { |
+ static net::HostResolver::RequestInfo Convert( |
+ const net::interfaces::HostResolverRequestInfo& obj); |
+}; |
+ |
+template <> |
+struct TypeConverter<net::interfaces::AddressListPtr, net::AddressList> { |
+ static net::interfaces::AddressListPtr Convert(const net::AddressList& obj); |
+}; |
+ |
+template <> |
+struct TypeConverter<net::AddressList, net::interfaces::AddressList> { |
+ static net::AddressList Convert(const net::interfaces::AddressList& obj); |
+}; |
+ |
+} // namespace mojo |
+ |
+#endif // NET_INTERFACES_TYPE_CONVERTERS_H_ |