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

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

Issue 2812983006: Revert "Add back "default address family" to HostResolver" (Closed)
Patch Set: Created 3 years, 8 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 | « net/dns/host_resolver.h ('k') | net/dns/host_resolver_impl.h » ('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 (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/memory/ptr_util.h" 8 #include "base/memory/ptr_util.h"
9 #include "base/metrics/field_trial.h" 9 #include "base/metrics/field_trial.h"
10 #include "base/strings/string_number_conversions.h" 10 #include "base/strings/string_number_conversions.h"
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 } 125 }
126 126
127 std::unique_ptr<base::Value> HostResolver::GetDnsConfigAsValue() const { 127 std::unique_ptr<base::Value> HostResolver::GetDnsConfigAsValue() const {
128 return nullptr; 128 return nullptr;
129 } 129 }
130 130
131 void HostResolver::InitializePersistence( 131 void HostResolver::InitializePersistence(
132 const PersistCallback& persist_callback, 132 const PersistCallback& persist_callback,
133 std::unique_ptr<const base::Value> old_data) {} 133 std::unique_ptr<const base::Value> old_data) {}
134 134
135 void HostResolver::SetDefaultAddressFamily(AddressFamily address_family) {
136 NOTREACHED();
137 }
138
139 AddressFamily HostResolver::GetDefaultAddressFamily() const {
140 return ADDRESS_FAMILY_UNSPECIFIED;
141 }
142
143 void HostResolver::SetNoIPv6OnWifi(bool no_ipv6_on_wifi) { 135 void HostResolver::SetNoIPv6OnWifi(bool no_ipv6_on_wifi) {
144 NOTREACHED(); 136 NOTREACHED();
145 } 137 }
146 138
147 bool HostResolver::GetNoIPv6OnWifi() { 139 bool HostResolver::GetNoIPv6OnWifi() {
148 return false; 140 return false;
149 } 141 }
150 142
151 // static 143 // static
152 std::unique_ptr<HostResolver> HostResolver::CreateSystemResolver( 144 std::unique_ptr<HostResolver> HostResolver::CreateSystemResolver(
(...skipping 18 matching lines...) Expand all
171 163
172 // static 164 // static
173 std::unique_ptr<HostResolverImpl> HostResolver::CreateDefaultResolverImpl( 165 std::unique_ptr<HostResolverImpl> HostResolver::CreateDefaultResolverImpl(
174 NetLog* net_log) { 166 NetLog* net_log) {
175 return CreateSystemResolverImpl(Options(), net_log); 167 return CreateSystemResolverImpl(Options(), net_log);
176 } 168 }
177 169
178 HostResolver::HostResolver() {} 170 HostResolver::HostResolver() {}
179 171
180 } // namespace net 172 } // namespace net
OLDNEW
« no previous file with comments | « net/dns/host_resolver.h ('k') | net/dns/host_resolver_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698