OLD | NEW |
---|---|
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "build/build_config.h" | |
10 | |
11 #if defined(OS_OPENBSD) | |
12 #include <sys/types.h> | |
13 #include <sys/socket.h> | |
14 #include <netinet/in.h> | |
15 #endif | |
wtc
2011/10/18 21:50:26
Note: it may be better to use a forward declaratio
Robert Nagy
2011/10/19 07:10:02
Yes it makes sense to include these headers everyw
| |
16 | |
9 #include <resolv.h> | 17 #include <resolv.h> |
10 | 18 |
11 #include "base/compiler_specific.h" | 19 #include "base/compiler_specific.h" |
12 #include "base/memory/scoped_ptr.h" | 20 #include "base/memory/scoped_ptr.h" |
13 #include "net/base/net_export.h" | 21 #include "net/base/net_export.h" |
14 #include "net/dns/dns_config_service.h" | 22 #include "net/dns/dns_config_service.h" |
15 | 23 |
16 namespace net { | 24 namespace net { |
17 | 25 |
18 class WatchingFileReader; | 26 class WatchingFileReader; |
(...skipping 14 matching lines...) Expand all Loading... | |
33 DISALLOW_COPY_AND_ASSIGN(DnsConfigServicePosix); | 41 DISALLOW_COPY_AND_ASSIGN(DnsConfigServicePosix); |
34 }; | 42 }; |
35 | 43 |
36 // Fills in |dns_config| from |res|. Exposed for tests. | 44 // Fills in |dns_config| from |res|. Exposed for tests. |
37 bool NET_EXPORT_PRIVATE ConvertResToConfig(const struct __res_state& res, | 45 bool NET_EXPORT_PRIVATE ConvertResToConfig(const struct __res_state& res, |
38 DnsConfig* dns_config); | 46 DnsConfig* dns_config); |
39 | 47 |
40 } // namespace net | 48 } // namespace net |
41 | 49 |
42 #endif // NET_DNS_DNS_CONFIG_SERVICE_POSIX_H_ | 50 #endif // NET_DNS_DNS_CONFIG_SERVICE_POSIX_H_ |
OLD | NEW |