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 module net.dns; |
| 6 |
| 7 struct RequestInfo { |
| 8 string host_port_pair; |
| 9 int32 address_family; |
| 10 // ... |
| 11 }; |
| 12 |
| 13 struct AddressList { |
| 14 // Also send the port? |
| 15 array<array<uint8>> addresses; |
| 16 string canonical_name; |
| 17 }; |
| 18 |
| 19 interface Resolver { |
| 20 Resolve(RequestInfo request_info, ResolveRequestClient client); |
| 21 }; |
| 22 |
| 23 interface ResolverClient { |
| 24 }; |
| 25 |
| 26 interface ResolveRequestClient { |
| 27 ReportResult(AddressList result); |
| 28 ReportError(int32 error); |
| 29 // AppendLog(???); |
| 30 }; |
OLD | NEW |