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

Unified Diff: net/base/host_resolver_impl.h

Issue 303026: Refactor: Change the interface HostResolver::DisableIPv6() to HostResolver::SetDefaultA... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Add another comment by the switch Created 11 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/base/host_resolver.h ('k') | net/base/host_resolver_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/host_resolver_impl.h
===================================================================
--- net/base/host_resolver_impl.h (revision 29880)
+++ net/base/host_resolver_impl.h (working copy)
@@ -70,10 +70,8 @@
// TODO(eroman): temp hack for http://crbug.com/15513
virtual void Shutdown();
- // Prevents returning IPv6 addresses from Resolve().
- // The default is to allow IPv6 results.
- virtual void DisableIPv6(bool disable_ipv6) {
- disable_ipv6_ = disable_ipv6;
+ virtual void SetDefaultAddressFamily(AddressFamily address_family) {
+ default_address_family_ = address_family;
}
private:
@@ -139,8 +137,8 @@
// in the case of unit-tests which inject custom host resolving behaviors.
scoped_refptr<HostResolverProc> resolver_proc_;
- // Set to true if only IPv4 address are to be returned by Resolve().
- bool disable_ipv6_;
+ // Address family to use when the request doesn't specify one.
+ AddressFamily default_address_family_;
// TODO(eroman): temp hack for http://crbug.com/15513
bool shutdown_;
« no previous file with comments | « net/base/host_resolver.h ('k') | net/base/host_resolver_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698