Index: net/dns/host_resolver.mojom |
diff --git a/net/dns/host_resolver.mojom b/net/dns/host_resolver.mojom |
new file mode 100644 |
index 0000000000000000000000000000000000000000..860297345b077aa43883da64f3edb10a633fb953 |
--- /dev/null |
+++ b/net/dns/host_resolver.mojom |
@@ -0,0 +1,30 @@ |
+// 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. |
+ |
+module net.dns; |
+ |
+struct RequestInfo { |
+ string host_port_pair; |
+ int32 address_family; |
+ // ... |
+}; |
+ |
+struct AddressList { |
+ // Also send the port? |
+ array<array<uint8>> addresses; |
+ string canonical_name; |
+}; |
+ |
+interface Resolver { |
+ Resolve(RequestInfo request_info, ResolveRequestClient client); |
+}; |
+ |
+interface ResolverClient { |
+}; |
+ |
+interface ResolveRequestClient { |
+ ReportResult(AddressList result); |
+ ReportError(int32 error); |
+ // AppendLog(???); |
+}; |