| OLD | NEW |
| 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 module mojo; | 5 module mojo; |
| 6 | 6 |
| 7 import "network/public/interfaces/net_address.mojom"; | 7 import "network/interfaces/net_address.mojom"; |
| 8 import "third_party/mojo/src/mojo/public/interfaces/network/network_error.mojom"
; | 8 import "third_party/mojo/src/mojo/public/interfaces/network/network_error.mojom"
; |
| 9 | 9 |
| 10 interface HostResolver { | 10 interface HostResolver { |
| 11 // Get the list of IP addresses for host. | 11 // Get the list of IP addresses for host. |
| 12 GetHostAddresses(string host, NetAddressFamily family) => | 12 GetHostAddresses(string host, NetAddressFamily family) => |
| 13 (NetworkError result, array<NetAddress>? addresses); | 13 (NetworkError result, array<NetAddress>? addresses); |
| 14 }; | 14 }; |
| OLD | NEW |