blob: d873c0741737f1d91af162be6460b93ba02843ee [file] [log] [blame]
Eric Orthdc35748e2018-08-23 22:41:481// 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 Orth12c47252018-09-05 17:04:078namespace net {
9
Eric Orthdc35748e2018-08-23 22:41:4810// Enumeration to specify the allowed results source for HostResolver
11// requests.
12enum 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 Orth9871aafa2018-10-02 19:59:1824 // Results will only come from Multicast DNS queries.
25 MULTICAST_DNS,
Eric Orthdc35748e2018-08-23 22:41:4826};
27
Eric Orth12c47252018-09-05 17:04:0728} // namespace net
29
Eric Orthdc35748e2018-08-23 22:41:4830#endif // NET_DNS_HOST_RESOLVER_SOURCE_H_