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 #include "net/dns/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> |
(...skipping 10 matching lines...) Expand all Loading... |
21 #include "base/compiler_specific.h" | 21 #include "base/compiler_specific.h" |
22 #include "base/debug/debugger.h" | 22 #include "base/debug/debugger.h" |
23 #include "base/debug/stack_trace.h" | 23 #include "base/debug/stack_trace.h" |
24 #include "base/message_loop/message_loop_proxy.h" | 24 #include "base/message_loop/message_loop_proxy.h" |
25 #include "base/metrics/field_trial.h" | 25 #include "base/metrics/field_trial.h" |
26 #include "base/metrics/histogram.h" | 26 #include "base/metrics/histogram.h" |
27 #include "base/stl_util.h" | 27 #include "base/stl_util.h" |
28 #include "base/strings/string_util.h" | 28 #include "base/strings/string_util.h" |
29 #include "base/strings/utf_string_conversions.h" | 29 #include "base/strings/utf_string_conversions.h" |
30 #include "base/threading/worker_pool.h" | 30 #include "base/threading/worker_pool.h" |
31 #include "base/time.h" | 31 #include "base/time/time.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/dns_util.h" | 36 #include "net/base/dns_util.h" |
37 #include "net/base/host_port_pair.h" | 37 #include "net/base/host_port_pair.h" |
38 #include "net/base/net_errors.h" | 38 #include "net/base/net_errors.h" |
39 #include "net/base/net_log.h" | 39 #include "net/base/net_log.h" |
40 #include "net/base/net_util.h" | 40 #include "net/base/net_util.h" |
41 #include "net/dns/address_sorter.h" | 41 #include "net/dns/address_sorter.h" |
(...skipping 2228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2270 } | 2270 } |
2271 DnsConfig dns_config; | 2271 DnsConfig dns_config; |
2272 NetworkChangeNotifier::GetDnsConfig(&dns_config); | 2272 NetworkChangeNotifier::GetDnsConfig(&dns_config); |
2273 dns_client_->SetConfig(dns_config); | 2273 dns_client_->SetConfig(dns_config); |
2274 num_dns_failures_ = 0; | 2274 num_dns_failures_ = 0; |
2275 if (dns_config.IsValid()) | 2275 if (dns_config.IsValid()) |
2276 UMA_HISTOGRAM_BOOLEAN("AsyncDNS.DnsClientEnabled", true); | 2276 UMA_HISTOGRAM_BOOLEAN("AsyncDNS.DnsClientEnabled", true); |
2277 } | 2277 } |
2278 | 2278 |
2279 } // namespace net | 2279 } // namespace net |
OLD | NEW |