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.
5 // WARNING! Do NOT use this mojom. It is intended as a temporary interface to
6 // implement out-of-process proxy resolution. If you wish to use a Mojo DNS
7 // service, contact amistry@/sammc@ and net-dev to discuss a permanent Mojo DNS
10 // Put Mojo definitions into their own namespace to avoid collisions with C++
12 // TODO(amistry): Resolve the conflict between these two sets of definitions.
13 module net.interfaces;
15 // Mirror of net::AddressFamily.
22 // Mirror of net::HostResolver::RequestInfo.
23 struct HostResolverRequestInfo {
26 AddressFamily address_family;
27 bool is_my_ip_address;
30 // Mirror of net::IPEndPoint.
32 // IP address as a numeric value from most to least significant byte.
33 // Will be of length 4 for IPv4 addresses and 16 for IPv6.
38 // Mirror of net::AddressList.
40 array<IPEndPoint> addresses;
43 interface HostResolverRequestClient {
44 // |error| is a value in net::Error.
45 ReportResult(int32 error, AddressList? result);