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

Unified Diff: net/base/network_change_notifier.h

Issue 2872433004: [NetworkChangeNotifier] Get connection type from interface list for Windows (Closed)
Patch Set: Created 3 years, 7 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 | « no previous file | net/base/network_change_notifier.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/network_change_notifier.h
diff --git a/net/base/network_change_notifier.h b/net/base/network_change_notifier.h
index a758cc3acf30c0400368d81280248e5971d0d8e7..66789794c0535c8456e74a016f9858d48aae8937 100644
--- a/net/base/network_change_notifier.h
+++ b/net/base/network_change_notifier.h
@@ -538,6 +538,10 @@ class NET_EXPORT NetworkChangeNotifier {
// observers.
static void SetInitialDnsConfig(const DnsConfig& config);
+ // Infer connection type from |GetNetworkList|. If all network interfaces
+ // have the same type, return it, otherwise return CONNECTION_UNKNOWN.
+ static ConnectionType ConnectionTypeFromInterfaces();
+
private:
friend class HostResolverImplDnsTest;
friend class NetworkChangeNotifierAndroidTest;
« no previous file with comments | « no previous file | net/base/network_change_notifier.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698