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

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

Issue 1837483003: Move base::FreeDeleter into its own header. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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) 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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698