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

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

Issue 8336024: OpenBSD patches for net, split from CR #8275005 (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: fixes for comments on previous patchset Created 9 years, 2 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
OLDNEW
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"
wtc 2011/10/19 22:34:27 Please remove this. I believe this is not necessa
Robert Nagy 2011/10/20 07:37:43 Done.
10
11 #include <sys/types.h>
cbentzel 2011/10/19 19:35:18 Should this includes be nested within OPENBSD cond
Robert Nagy 2011/10/19 19:49:34 I think it is totally fine on every posix system,
wtc 2011/10/19 22:34:27 <sys/types.h> used to be required on Unix in the e
12 #include <netinet/in.h>
13 #include <arpa/nameser.h>
wtc 2011/10/19 22:34:27 Don't add <arpa/nameser.h> unless it's required by
Robert Nagy 2011/10/20 07:37:43 I've removed nameser.h, but the others has to stay
9 #include <resolv.h> 14 #include <resolv.h>
10 15
11 #include "base/compiler_specific.h" 16 #include "base/compiler_specific.h"
12 #include "base/memory/scoped_ptr.h" 17 #include "base/memory/scoped_ptr.h"
13 #include "net/base/net_export.h" 18 #include "net/base/net_export.h"
14 #include "net/dns/dns_config_service.h" 19 #include "net/dns/dns_config_service.h"
15 20
16 namespace net { 21 namespace net {
17 22
18 class WatchingFileReader; 23 class WatchingFileReader;
(...skipping 14 matching lines...) Expand all
33 DISALLOW_COPY_AND_ASSIGN(DnsConfigServicePosix); 38 DISALLOW_COPY_AND_ASSIGN(DnsConfigServicePosix);
34 }; 39 };
35 40
36 // Fills in |dns_config| from |res|. Exposed for tests. 41 // Fills in |dns_config| from |res|. Exposed for tests.
37 bool NET_EXPORT_PRIVATE ConvertResToConfig(const struct __res_state& res, 42 bool NET_EXPORT_PRIVATE ConvertResToConfig(const struct __res_state& res,
38 DnsConfig* dns_config); 43 DnsConfig* dns_config);
39 44
40 } // namespace net 45 } // namespace net
41 46
42 #endif // NET_DNS_DNS_CONFIG_SERVICE_POSIX_H_ 47 #endif // NET_DNS_DNS_CONFIG_SERVICE_POSIX_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698