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

Unified Diff: net/base/net_util.h

Issue 878513008: Add a function to get Wifi SSID to net_util. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix unused function warning 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
« no previous file with comments | « no previous file | net/base/net_util_linux.h » ('j') | net/base/net_util_linux.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/net_util.h
diff --git a/net/base/net_util.h b/net/base/net_util.h
index 9e9dbad4613914bf257bd274edb692c79e947ee3..a045b8bda9c5d1485ae68eb28ae331e68863ffb7 100644
--- a/net/base/net_util.h
+++ b/net/base/net_util.h
@@ -496,6 +496,14 @@ enum HostAddressSelectionPolicy {
NET_EXPORT bool GetNetworkList(NetworkInterfaceList* networks,
int policy);
+// Gets the current Wi-Fi SSID based on |interfaces|. Returns
+// empty string if there are no interfaces or if two interfaces have different
+// connection types. Otherwise returns the SSID of all interfaces if they have
+// the same SSID. This is adapted from
+// NetworkChangeNotifier::ConnectionTypeFromInterfaceList.
+NET_EXPORT std::string GetWifiSSIDFromInterfaceList(
+ const NetworkInterfaceList& interfaces);
+
// General category of the IEEE 802.11 (wifi) physical layer operating mode.
enum WifiPHYLayerProtocol {
// No wifi support or no associated AP.
« no previous file with comments | « no previous file | net/base/net_util_linux.h » ('j') | net/base/net_util_linux.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698