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

Side by Side Diff: net/dns/host_resolver_impl.cc

Issue 12518036: net: move host_resolver files from net/base to net/dns (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 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 | Annotate | Revision Log
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 #include "net/base/host_resolver_impl.h" 5 #include "net/dns/host_resolver_impl.h"
6 6
7 #if defined(OS_WIN) 7 #if defined(OS_WIN)
8 #include <Winsock2.h> 8 #include <Winsock2.h>
9 #elif defined(OS_POSIX) 9 #elif defined(OS_POSIX)
10 #include <netdb.h> 10 #include <netdb.h>
11 #endif 11 #endif
12 12
13 #include <cmath> 13 #include <cmath>
14 #include <utility> 14 #include <utility>
15 #include <vector> 15 #include <vector>
(...skipping 11 matching lines...) Expand all
27 #include "base/stl_util.h" 27 #include "base/stl_util.h"
28 #include "base/string_util.h" 28 #include "base/string_util.h"
29 #include "base/threading/worker_pool.h" 29 #include "base/threading/worker_pool.h"
30 #include "base/time.h" 30 #include "base/time.h"
31 #include "base/utf_string_conversions.h" 31 #include "base/utf_string_conversions.h"
32 #include "base/values.h" 32 #include "base/values.h"
33 #include "net/base/address_family.h" 33 #include "net/base/address_family.h"
34 #include "net/base/address_list.h" 34 #include "net/base/address_list.h"
35 #include "net/base/dns_reloader.h" 35 #include "net/base/dns_reloader.h"
36 #include "net/base/host_port_pair.h" 36 #include "net/base/host_port_pair.h"
37 #include "net/base/host_resolver_proc.h"
38 #include "net/base/net_errors.h" 37 #include "net/base/net_errors.h"
39 #include "net/base/net_log.h" 38 #include "net/base/net_log.h"
40 #include "net/base/net_util.h" 39 #include "net/base/net_util.h"
41 #include "net/dns/address_sorter.h" 40 #include "net/dns/address_sorter.h"
42 #include "net/dns/dns_client.h" 41 #include "net/dns/dns_client.h"
43 #include "net/dns/dns_config_service.h" 42 #include "net/dns/dns_config_service.h"
44 #include "net/dns/dns_protocol.h" 43 #include "net/dns/dns_protocol.h"
45 #include "net/dns/dns_response.h" 44 #include "net/dns/dns_response.h"
46 #include "net/dns/dns_transaction.h" 45 #include "net/dns/dns_transaction.h"
46 #include "net/dns/host_resolver_proc.h"
47 47
48 #if defined(OS_WIN) 48 #if defined(OS_WIN)
49 #include "net/base/winsock_init.h" 49 #include "net/base/winsock_init.h"
50 #endif 50 #endif
51 51
52 namespace net { 52 namespace net {
53 53
54 namespace { 54 namespace {
55 55
56 // Limit the size of hostnames that will be resolved to combat issues in 56 // Limit the size of hostnames that will be resolved to combat issues in
(...skipping 2114 matching lines...) Expand 10 before | Expand all | Expand 10 after
2171 } 2171 }
2172 DnsConfig dns_config; 2172 DnsConfig dns_config;
2173 NetworkChangeNotifier::GetDnsConfig(&dns_config); 2173 NetworkChangeNotifier::GetDnsConfig(&dns_config);
2174 dns_client_->SetConfig(dns_config); 2174 dns_client_->SetConfig(dns_config);
2175 num_dns_failures_ = 0; 2175 num_dns_failures_ = 0;
2176 if (dns_config.IsValid()) 2176 if (dns_config.IsValid())
2177 UMA_HISTOGRAM_BOOLEAN("AsyncDNS.DnsClientEnabled", true); 2177 UMA_HISTOGRAM_BOOLEAN("AsyncDNS.DnsClientEnabled", true);
2178 } 2178 }
2179 2179
2180 } // namespace net 2180 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698