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

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

Issue 1163903002: Remove "Default Address Family" behavior from the HostResolver. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: No need for protected Created 5 years, 6 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 #include "net/dns/host_resolver.h" 5 #include "net/dns/host_resolver.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/metrics/field_trial.h" 8 #include "base/metrics/field_trial.h"
9 #include "base/strings/string_number_conversions.h" 9 #include "base/strings/string_number_conversions.h"
10 #include "base/strings/string_split.h" 10 #include "base/strings/string_split.h"
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 : host_port_pair_(host_port_pair), 93 : host_port_pair_(host_port_pair),
94 address_family_(ADDRESS_FAMILY_UNSPECIFIED), 94 address_family_(ADDRESS_FAMILY_UNSPECIFIED),
95 host_resolver_flags_(0), 95 host_resolver_flags_(0),
96 allow_cached_response_(true), 96 allow_cached_response_(true),
97 is_speculative_(false), 97 is_speculative_(false),
98 is_my_ip_address_(false) {} 98 is_my_ip_address_(false) {}
99 99
100 HostResolver::~HostResolver() { 100 HostResolver::~HostResolver() {
101 } 101 }
102 102
103 AddressFamily HostResolver::GetDefaultAddressFamily() const {
104 return ADDRESS_FAMILY_UNSPECIFIED;
105 }
106
107 void HostResolver::SetDnsClientEnabled(bool enabled) { 103 void HostResolver::SetDnsClientEnabled(bool enabled) {
108 } 104 }
109 105
110 HostCache* HostResolver::GetHostCache() { 106 HostCache* HostResolver::GetHostCache() {
111 return NULL; 107 return NULL;
112 } 108 }
113 109
114 base::Value* HostResolver::GetDnsConfigAsValue() const { 110 base::Value* HostResolver::GetDnsConfigAsValue() const {
115 return NULL; 111 return NULL;
116 } 112 }
117 113
118 // static 114 // static
119 scoped_ptr<HostResolver> HostResolver::CreateSystemResolver( 115 scoped_ptr<HostResolver> HostResolver::CreateSystemResolver(
120 const Options& options, 116 const Options& options,
121 NetLog* net_log) { 117 NetLog* net_log) {
122 return scoped_ptr<HostResolver>(new HostResolverImpl(options, net_log)); 118 return scoped_ptr<HostResolver>(new HostResolverImpl(options, net_log));
123 } 119 }
124 120
125 // static 121 // static
126 scoped_ptr<HostResolver> HostResolver::CreateDefaultResolver(NetLog* net_log) { 122 scoped_ptr<HostResolver> HostResolver::CreateDefaultResolver(NetLog* net_log) {
127 return scoped_ptr<HostResolver>(new HostResolverImpl(Options(), net_log)); 123 return scoped_ptr<HostResolver>(new HostResolverImpl(Options(), net_log));
128 } 124 }
129 125
130 HostResolver::HostResolver() { 126 HostResolver::HostResolver() {
131 } 127 }
132 128
133 } // namespace net 129 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698