Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 "components/cronet/stale_host_resolver.h" | 5 #include "components/cronet/stale_host_resolver.h" |
| 6 | 6 |
| 7 #include "base/callback_helpers.h" | 7 #include "base/callback_helpers.h" |
| 8 #include "base/memory/ptr_util.h" | 8 #include "base/memory/ptr_util.h" |
| 9 #include "base/metrics/histogram_macros.h" | 9 #include "base/metrics/histogram_macros.h" |
| 10 #include "base/stl_util.h" | 10 #include "base/stl_util.h" |
| 11 #include "base/timer/timer.h" | 11 #include "base/timer/timer.h" |
| 12 #include "base/values.h" | 12 #include "base/values.h" |
| 13 #include "net/base/address_family.h" | |
|
xunjieli
2017/02/28 18:39:59
can be reverted.
mgersh
2017/02/28 18:42:45
Done.
| |
| 13 #include "net/base/net_errors.h" | 14 #include "net/base/net_errors.h" |
| 14 #include "net/dns/dns_util.h" | 15 #include "net/dns/dns_util.h" |
| 15 #include "net/dns/host_resolver_impl.h" | 16 #include "net/dns/host_resolver_impl.h" |
| 16 | 17 |
| 17 namespace cronet { | 18 namespace cronet { |
| 18 | 19 |
| 19 namespace { | 20 namespace { |
| 20 | 21 |
| 21 // Used in histograms; do not modify existing values. | 22 // Used in histograms; do not modify existing values. |
| 22 enum RequestOutcome { | 23 enum RequestOutcome { |
| (...skipping 368 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 391 | 392 |
| 392 net::HostCache* StaleHostResolver::GetHostCache() { | 393 net::HostCache* StaleHostResolver::GetHostCache() { |
| 393 return inner_resolver_->GetHostCache(); | 394 return inner_resolver_->GetHostCache(); |
| 394 } | 395 } |
| 395 | 396 |
| 396 std::unique_ptr<base::Value> StaleHostResolver::GetDnsConfigAsValue() const { | 397 std::unique_ptr<base::Value> StaleHostResolver::GetDnsConfigAsValue() const { |
| 397 return inner_resolver_->GetDnsConfigAsValue(); | 398 return inner_resolver_->GetDnsConfigAsValue(); |
| 398 } | 399 } |
| 399 | 400 |
| 400 } // namespace net | 401 } // namespace net |
| OLD | NEW |