Eric Orth | dc35748e | 2018-08-23 22:41:48 | [diff] [blame] | 1 | // Copyright 2018 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 | #ifndef NET_DNS_HOST_RESOLVER_SOURCE_H_ |
| 6 | #define NET_DNS_HOST_RESOLVER_SOURCE_H_ |
| 7 | |
Eric Orth | 12c4725 | 2018-09-05 17:04:07 | [diff] [blame] | 8 | namespace net { |
| 9 | |
Eric Orth | dc35748e | 2018-08-23 22:41:48 | [diff] [blame] | 10 | // Enumeration to specify the allowed results source for HostResolver |
| 11 | // requests. |
| 12 | enum class HostResolverSource { |
| 13 | // Resolver will pick an appropriate source. Results could come from DNS, |
| 14 | // MulticastDNS, HOSTS file, etc. |
| 15 | ANY, |
| 16 | |
| 17 | // Results will only be retrieved from the system or OS, eg via the |
| 18 | // getaddrinfo() system call. |
| 19 | SYSTEM, |
| 20 | |
| 21 | // Results will only come from DNS queries. |
| 22 | DNS, |
| 23 | |
Eric Orth | 9871aafa | 2018-10-02 19:59:18 | [diff] [blame^] | 24 | // Results will only come from Multicast DNS queries. |
| 25 | MULTICAST_DNS, |
Eric Orth | dc35748e | 2018-08-23 22:41:48 | [diff] [blame] | 26 | }; |
| 27 | |
Eric Orth | 12c4725 | 2018-09-05 17:04:07 | [diff] [blame] | 28 | } // namespace net |
| 29 | |
Eric Orth | dc35748e | 2018-08-23 22:41:48 | [diff] [blame] | 30 | #endif // NET_DNS_HOST_RESOLVER_SOURCE_H_ |