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

Side by Side Diff: components/cronet/stale_host_resolver.cc

Issue 2711153007: Add Cronet experimental option to disable ipv6 (Closed)
Patch Set: comments Created 3 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
« no previous file with comments | « no previous file | components/cronet/url_request_context_config.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « no previous file | components/cronet/url_request_context_config.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698