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_WIN_H_ | 5 #ifndef NET_DNS_DNS_CONFIG_SERVICE_WIN_H_ |
6 #define NET_DNS_DNS_CONFIG_SERVICE_WIN_H_ | 6 #define NET_DNS_DNS_CONFIG_SERVICE_WIN_H_ |
7 | 7 |
8 // The sole purpose of dns_config_service_win.h is for unittests so we just | 8 // The sole purpose of dns_config_service_win.h is for unittests so we just |
9 // include these headers here. | 9 // include these headers here. |
10 #include <winsock2.h> | 10 #include <winsock2.h> |
11 #include <iphlpapi.h> | 11 #include <iphlpapi.h> |
12 | 12 |
13 #include <string> | 13 #include <string> |
14 #include <vector> | 14 #include <vector> |
15 | 15 |
16 #include "base/macros.h" | 16 #include "base/macros.h" |
| 17 #include "base/memory/free_deleter.h" |
17 #include "base/memory/ref_counted.h" | 18 #include "base/memory/ref_counted.h" |
18 #include "base/memory/scoped_ptr.h" | 19 #include "base/memory/scoped_ptr.h" |
19 #include "base/strings/string16.h" | 20 #include "base/strings/string16.h" |
20 #include "net/base/net_export.h" | 21 #include "net/base/net_export.h" |
21 #include "net/dns/dns_config_service.h" | 22 #include "net/dns/dns_config_service.h" |
22 | 23 |
23 // The general effort of DnsConfigServiceWin is to configure |nameservers| and | 24 // The general effort of DnsConfigServiceWin is to configure |nameservers| and |
24 // |search| in DnsConfig. The settings are stored in the Windows registry, but | 25 // |search| in DnsConfig. The settings are stored in the Windows registry, but |
25 // to simplify the task we use the IP Helper API wherever possible. That API | 26 // to simplify the task we use the IP Helper API wherever possible. That API |
26 // yields the complete and ordered |nameservers|, but to determine |search| we | 27 // yields the complete and ordered |nameservers|, but to determine |search| we |
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
141 | 142 |
142 DISALLOW_COPY_AND_ASSIGN(DnsConfigServiceWin); | 143 DISALLOW_COPY_AND_ASSIGN(DnsConfigServiceWin); |
143 }; | 144 }; |
144 | 145 |
145 } // namespace internal | 146 } // namespace internal |
146 | 147 |
147 } // namespace net | 148 } // namespace net |
148 | 149 |
149 #endif // NET_DNS_DNS_CONFIG_SERVICE_WIN_H_ | 150 #endif // NET_DNS_DNS_CONFIG_SERVICE_WIN_H_ |
150 | 151 |
OLD | NEW |