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

Unified Diff: net/dns/host_resolver.h

Issue 2811183003: Change Cronet's "disable_ipv6" to "disable_ipv6_on_wifi" (Closed)
Patch Set: MockNetworkChangeNotifier Created 3 years, 8 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
Index: net/dns/host_resolver.h
diff --git a/net/dns/host_resolver.h b/net/dns/host_resolver.h
index 33cdd34e7200a59b7a5b25dbefbde49a6ca36ce9..c237f595372860780b21b1f0f8d2a959927ea1a0 100644
--- a/net/dns/host_resolver.h
+++ b/net/dns/host_resolver.h
@@ -221,6 +221,11 @@ class NET_EXPORT HostResolver {
virtual void SetDefaultAddressFamily(AddressFamily address_family);
virtual AddressFamily GetDefaultAddressFamily() const;
+ // Sets the HostResolver to assume that IPv6 is unreachable when on a wifi
+ // connection. See http://crbug.com/696569 for further context.
pauljensen 2017/04/13 17:17:01 nit:https
mgersh 2017/04/13 19:07:20 Done.
+ virtual void SetNoIPv6OnWifi();
pauljensen 2017/04/13 17:17:01 This should probably take a bool. Calling it "ena
mgersh 2017/04/13 19:07:20 Done.
+ virtual bool GetNoIPv6OnWifi();
+
// Creates a HostResolver implementation that queries the underlying system.
// (Except if a unit-test has changed the global HostResolverProc using
// ScopedHostResolverProc to intercept requests to the system).

Powered by Google App Engine
This is Rietveld 408576698