Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(304)

Side by Side Diff: net/dns/dns_config_service_posix.h

Issue 21368005: Detect domain-specific resolvers on OS X and disable DnsClient in such cases. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: responded to review Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « net/dns/dns_config_service.cc ('k') | net/dns/dns_config_service_posix.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #ifndef NET_DNS_DNS_CONFIG_SERVICE_POSIX_H_ 5 #ifndef NET_DNS_DNS_CONFIG_SERVICE_POSIX_H_
6 #define NET_DNS_DNS_CONFIG_SERVICE_POSIX_H_ 6 #define NET_DNS_DNS_CONFIG_SERVICE_POSIX_H_
7 7
8 #include <sys/types.h> 8 #include <sys/types.h>
9 #include <netinet/in.h> 9 #include <netinet/in.h>
10 #include <resolv.h> 10 #include <resolv.h>
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 enum ConfigParsePosixResult { 46 enum ConfigParsePosixResult {
47 CONFIG_PARSE_POSIX_OK = 0, 47 CONFIG_PARSE_POSIX_OK = 0,
48 CONFIG_PARSE_POSIX_RES_INIT_FAILED, 48 CONFIG_PARSE_POSIX_RES_INIT_FAILED,
49 CONFIG_PARSE_POSIX_RES_INIT_UNSET, 49 CONFIG_PARSE_POSIX_RES_INIT_UNSET,
50 CONFIG_PARSE_POSIX_BAD_ADDRESS, 50 CONFIG_PARSE_POSIX_BAD_ADDRESS,
51 CONFIG_PARSE_POSIX_BAD_EXT_STRUCT, 51 CONFIG_PARSE_POSIX_BAD_EXT_STRUCT,
52 CONFIG_PARSE_POSIX_NULL_ADDRESS, 52 CONFIG_PARSE_POSIX_NULL_ADDRESS,
53 CONFIG_PARSE_POSIX_NO_NAMESERVERS, 53 CONFIG_PARSE_POSIX_NO_NAMESERVERS,
54 CONFIG_PARSE_POSIX_MISSING_OPTIONS, 54 CONFIG_PARSE_POSIX_MISSING_OPTIONS,
55 CONFIG_PARSE_POSIX_UNHANDLED_OPTIONS, 55 CONFIG_PARSE_POSIX_UNHANDLED_OPTIONS,
56 CONFIG_PARSE_POSIX_NO_DNSINFO,
56 CONFIG_PARSE_POSIX_MAX // Bounding values for enumeration. 57 CONFIG_PARSE_POSIX_MAX // Bounding values for enumeration.
57 }; 58 };
58 59
59 // Fills in |dns_config| from |res|. 60 // Fills in |dns_config| from |res|.
60 ConfigParsePosixResult NET_EXPORT_PRIVATE ConvertResStateToDnsConfig( 61 ConfigParsePosixResult NET_EXPORT_PRIVATE ConvertResStateToDnsConfig(
61 const struct __res_state& res, DnsConfig* dns_config); 62 const struct __res_state& res, DnsConfig* dns_config);
62 63
63 } // namespace internal 64 } // namespace internal
64 65
65 } // namespace net 66 } // namespace net
66 67
67 #endif // NET_DNS_DNS_CONFIG_SERVICE_POSIX_H_ 68 #endif // NET_DNS_DNS_CONFIG_SERVICE_POSIX_H_
OLDNEW
« no previous file with comments | « net/dns/dns_config_service.cc ('k') | net/dns/dns_config_service_posix.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698