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

Unified Diff: net/base/net_util.h

Issue 739983005: Determine connection type in NetworkChangeNotifierLinux. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments from patch set 3 Created 5 years, 11 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/base/net_util.h
diff --git a/net/base/net_util.h b/net/base/net_util.h
index 9e9dbad4613914bf257bd274edb692c79e947ee3..2581b638b9dd69da14a6aa46aa731fe8b71f881a 100644
--- a/net/base/net_util.h
+++ b/net/base/net_util.h
@@ -496,6 +496,13 @@ enum HostAddressSelectionPolicy {
NET_EXPORT bool GetNetworkList(NetworkInterfaceList* networks,
int policy);
+// Gets the current connection type based on |interfaces|. Returns
+// CONNECTION_NONE if there are no interfaces, CONNECTION_UNKNOWN if two
+// interfaces have different connection types or the connection type of all
+// interfaces if they have the same interface type.
+NET_EXPORT NetworkChangeNotifier::ConnectionType
+ConnectionTypeFromInterfaceList(const NetworkInterfaceList& interfaces);
pauljensen 2015/01/15 15:05:10 Please move this to network_change_notifier.h as i
derekjchow1 2015/01/15 20:32:51 Done.
+
// General category of the IEEE 802.11 (wifi) physical layer operating mode.
enum WifiPHYLayerProtocol {
// No wifi support or no associated AP.

Powered by Google App Engine
This is Rietveld 408576698