summaryrefslogtreecommitdiffstats
path: root/net/base/host_resolver.h
diff options
context:
space:
mode:
authoreroman@chromium.org <eroman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-26 17:59:51 +0000
committereroman@chromium.org <eroman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-26 17:59:51 +0000
commit0c7798459922d970a2eb43039a2a5733bb94ae2e (patch)
tree648b15f61e1d7135f12fb648195e0806b8193dd2 /net/base/host_resolver.h
parentc248be0e84cda8fb1870db68a3127b2e9fae057c (diff)
downloadchromium_src-0c7798459922d970a2eb43039a2a5733bb94ae2e.zip
chromium_src-0c7798459922d970a2eb43039a2a5733bb94ae2e.tar.gz
chromium_src-0c7798459922d970a2eb43039a2a5733bb94ae2e.tar.bz2
Refactor: Change the interface from HostResolver::DisableIPv6() to HostResolver::SetDefaultAddressFamily(), to make it more general.
This came up in a codereview comment, but was after I had checked in. Review URL: http://codereview.chromium.org/303026 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30063 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/base/host_resolver.h')
-rw-r--r--net/base/host_resolver.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/net/base/host_resolver.h b/net/base/host_resolver.h
index 4829c1c..998de32 100644
--- a/net/base/host_resolver.h
+++ b/net/base/host_resolver.h
@@ -148,8 +148,11 @@ class HostResolver : public base::RefCountedThreadSafe<HostResolver> {
// TODO(eroman): temp hack for http://crbug.com/18373
virtual void Shutdown() = 0;
- // Disables or enables support for IPv6 results.
- virtual void DisableIPv6(bool disable_ipv6) {}
+ // Sets the default AddressFamily to use when requests have left it
+ // unspecified. For example, this could be used to restrict resolution
+ // results to AF_INET by passing in ADDRESS_FAMILY_IPV4, or to
+ // AF_INET6 by passing in ADDRESS_FAMILY_IPV6.
+ virtual void SetDefaultAddressFamily(AddressFamily address_family) {}
protected:
HostResolver() { }