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

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

Issue 19286002: Remove interface probing for IPv6 support from HostResolverImpl (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Make --enable-ipv6 disable probing. Created 7 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « net/base/net_util.cc ('k') | net/dns/host_resolver.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 (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 #ifndef NET_DNS_HOST_RESOLVER_H_ 5 #ifndef NET_DNS_HOST_RESOLVER_H_
6 #define NET_DNS_HOST_RESOLVER_H_ 6 #define NET_DNS_HOST_RESOLVER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 // has already run or the request was canceled. 163 // has already run or the request was canceled.
164 virtual void CancelRequest(RequestHandle req) = 0; 164 virtual void CancelRequest(RequestHandle req) = 0;
165 165
166 // Sets the default AddressFamily to use when requests have left it 166 // Sets the default AddressFamily to use when requests have left it
167 // unspecified. For example, this could be used to restrict resolution 167 // unspecified. For example, this could be used to restrict resolution
168 // results to AF_INET by passing in ADDRESS_FAMILY_IPV4, or to 168 // results to AF_INET by passing in ADDRESS_FAMILY_IPV4, or to
169 // AF_INET6 by passing in ADDRESS_FAMILY_IPV6. 169 // AF_INET6 by passing in ADDRESS_FAMILY_IPV6.
170 virtual void SetDefaultAddressFamily(AddressFamily address_family) {} 170 virtual void SetDefaultAddressFamily(AddressFamily address_family) {}
171 virtual AddressFamily GetDefaultAddressFamily() const; 171 virtual AddressFamily GetDefaultAddressFamily() const;
172 172
173 // Continuously observe whether IPv6 is supported, and set the allowable
174 // address family to IPv4 iff IPv6 is not supported.
175 virtual void ProbeIPv6Support();
176
177 // Enable or disable the built-in asynchronous DnsClient. 173 // Enable or disable the built-in asynchronous DnsClient.
178 virtual void SetDnsClientEnabled(bool enabled); 174 virtual void SetDnsClientEnabled(bool enabled);
179 175
180 // Returns the HostResolverCache |this| uses, or NULL if there isn't one. 176 // Returns the HostResolverCache |this| uses, or NULL if there isn't one.
181 // Used primarily to clear the cache and for getting debug information. 177 // Used primarily to clear the cache and for getting debug information.
182 virtual HostCache* GetHostCache(); 178 virtual HostCache* GetHostCache();
183 179
184 // Returns the current DNS configuration |this| is using, as a Value, or NULL 180 // Returns the current DNS configuration |this| is using, as a Value, or NULL
185 // if it's configured to always use the system host resolver. Caller takes 181 // if it's configured to always use the system host resolver. Caller takes
186 // ownership of the returned Value. 182 // ownership of the returned Value.
(...skipping 12 matching lines...) Expand all
199 protected: 195 protected:
200 HostResolver(); 196 HostResolver();
201 197
202 private: 198 private:
203 DISALLOW_COPY_AND_ASSIGN(HostResolver); 199 DISALLOW_COPY_AND_ASSIGN(HostResolver);
204 }; 200 };
205 201
206 } // namespace net 202 } // namespace net
207 203
208 #endif // NET_DNS_HOST_RESOLVER_H_ 204 #endif // NET_DNS_HOST_RESOLVER_H_
OLDNEW
« no previous file with comments | « net/base/net_util.cc ('k') | net/dns/host_resolver.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698