Index: net/dns/host_resolver_impl.h |
diff --git a/net/dns/host_resolver_impl.h b/net/dns/host_resolver_impl.h |
index e6a7a6db73f23f34874e41bddd78db126880a040..72b5b56e0c7ca52172afaff1a0bfc93c32f42d55 100644 |
--- a/net/dns/host_resolver_impl.h |
+++ b/net/dns/host_resolver_impl.h |
@@ -135,8 +135,6 @@ class NET_EXPORT HostResolverImpl |
AddressList* addresses, |
const BoundNetLog& source_net_log) override; |
void CancelRequest(RequestHandle req) override; |
- void SetDefaultAddressFamily(AddressFamily address_family) override; |
- AddressFamily GetDefaultAddressFamily() const override; |
void SetDnsClientEnabled(bool enabled) override; |
HostCache* GetHostCache() override; |
base::Value* GetDnsConfigAsValue() const override; |
@@ -145,6 +143,12 @@ class NET_EXPORT HostResolverImpl |
proc_params_ = proc_params; |
} |
+ protected: |
+ // Probes IPv6 support and returns true if IPv6 support is enabled. |
+ // Results are cached, i.e. when called repeatedly this method returns result |
+ // from the first probe for some time before probing again. |
+ virtual bool IsIPv6Reachable(const BoundNetLog& net_log); |
mmenke
2015/06/03 13:31:03
Drive-by nit: This doesn't have to be protected f
cbentzel
2015/06/03 15:43:19
Done.
|
+ |
private: |
friend class HostResolverImplTest; |
class Job; |
@@ -202,11 +206,6 @@ class NET_EXPORT HostResolverImpl |
const IPAddressNumber* ip_number, |
const BoundNetLog& net_log); |
- // Probes IPv6 support and returns true if IPv6 support is enabled. |
- // Results are cached, i.e. when called repeatedly this method returns result |
- // from the first probe for some time before probing again. |
- bool IsIPv6Reachable(const BoundNetLog& net_log); |
- |
// Records the result in cache if cache is present. |
void CacheResult(const Key& key, |
const HostCache::Entry& entry, |
@@ -268,9 +267,6 @@ class NET_EXPORT HostResolverImpl |
NetLog* net_log_; |
- // Address family to use when the request doesn't specify one. |
- AddressFamily default_address_family_; |
- |
// If present, used by DnsTask and ServeFromHosts to resolve requests. |
scoped_ptr<DnsClient> dns_client_; |
@@ -281,10 +277,6 @@ class NET_EXPORT HostResolverImpl |
// Number of consecutive failures of DnsTask, counted when fallback succeeds. |
unsigned num_dns_failures_; |
- // True if probing is done for each Request to set address family. When false, |
- // explicit setting in |default_address_family_| is used. |
- bool probe_ipv6_support_; |
- |
// True if DnsConfigService detected that system configuration depends on |
// local IPv6 connectivity. Disables probing. |
bool use_local_ipv6_; |