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

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

Issue 2709393007: Add back "default address family" to HostResolver (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 | « 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
135 // static 143 // static
136 std::unique_ptr<HostResolver> HostResolver::CreateSystemResolver( 144 std::unique_ptr<HostResolver> HostResolver::CreateSystemResolver(
137 const Options& options, 145 const Options& options,
138 NetLog* net_log) { 146 NetLog* net_log) {
139 return std::unique_ptr<HostResolver>( 147 return std::unique_ptr<HostResolver>(
140 CreateSystemResolverImpl(options, net_log).release()); 148 CreateSystemResolverImpl(options, net_log).release());
141 } 149 }
142 150
143 // static 151 // static
144 std::unique_ptr<HostResolverImpl> HostResolver::CreateSystemResolverImpl( 152 std::unique_ptr<HostResolverImpl> HostResolver::CreateSystemResolverImpl(
(...skipping 10 matching lines...) Expand all
155 163
156 // static 164 // static
157 std::unique_ptr<HostResolverImpl> HostResolver::CreateDefaultResolverImpl( 165 std::unique_ptr<HostResolverImpl> HostResolver::CreateDefaultResolverImpl(
158 NetLog* net_log) { 166 NetLog* net_log) {
159 return CreateSystemResolverImpl(Options(), net_log); 167 return CreateSystemResolverImpl(Options(), net_log);
160 } 168 }
161 169
162 HostResolver::HostResolver() {} 170 HostResolver::HostResolver() {}
163 171
164 } // 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