| OLD | NEW |
| 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 #if !defined(OS_ANDROID) | 8 #if !defined(OS_ANDROID) |
| 9 #include <sys/types.h> | 9 #include <sys/types.h> |
| 10 #include <netinet/in.h> | 10 #include <netinet/in.h> |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 CONFIG_PARSE_POSIX_NULL_ADDRESS, | 54 CONFIG_PARSE_POSIX_NULL_ADDRESS, |
| 55 CONFIG_PARSE_POSIX_NO_NAMESERVERS, | 55 CONFIG_PARSE_POSIX_NO_NAMESERVERS, |
| 56 CONFIG_PARSE_POSIX_MISSING_OPTIONS, | 56 CONFIG_PARSE_POSIX_MISSING_OPTIONS, |
| 57 CONFIG_PARSE_POSIX_UNHANDLED_OPTIONS, | 57 CONFIG_PARSE_POSIX_UNHANDLED_OPTIONS, |
| 58 CONFIG_PARSE_POSIX_NO_DNSINFO, | 58 CONFIG_PARSE_POSIX_NO_DNSINFO, |
| 59 CONFIG_PARSE_POSIX_MAX // Bounding values for enumeration. | 59 CONFIG_PARSE_POSIX_MAX // Bounding values for enumeration. |
| 60 }; | 60 }; |
| 61 | 61 |
| 62 #if !defined(OS_ANDROID) | 62 #if !defined(OS_ANDROID) |
| 63 // Fills in |dns_config| from |res|. | 63 // Fills in |dns_config| from |res|. |
| 64 ConfigParsePosixResult NET_EXPORT_PRIVATE ConvertResStateToDnsConfig( | 64 ConfigParsePosixResult NET_EXPORT_PRIVATE |
| 65 const struct __res_state& res, DnsConfig* dns_config); | 65 ConvertResStateToDnsConfig(const struct __res_state& res, |
| 66 DnsConfig* dns_config); |
| 66 #endif | 67 #endif |
| 67 | 68 |
| 68 } // namespace internal | 69 } // namespace internal |
| 69 | 70 |
| 70 } // namespace net | 71 } // namespace net |
| 71 | 72 |
| 72 #endif // NET_DNS_DNS_CONFIG_SERVICE_POSIX_H_ | 73 #endif // NET_DNS_DNS_CONFIG_SERVICE_POSIX_H_ |
| OLD | NEW |