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

Unified Diff: net/android/network_library.h

Issue 2081493002: Obtain WiFi SSID on Android using Android APIs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix tests Created 4 years, 6 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/android/network_library.h
diff --git a/net/android/network_library.h b/net/android/network_library.h
index 827548ac5905d29528b4eab23efde789cddf2566..136e2cd699551c2b886b822946045ac371f6fe36 100644
--- a/net/android/network_library.h
+++ b/net/android/network_library.h
@@ -77,6 +77,10 @@ NET_EXPORT std::string GetTelephonySimOperator();
// true, it suggests that use of data may incur extra costs.
NET_EXPORT bool GetIsRoaming();
+// Gets the SSID of the currently associated WiFi access point if there is one.
+// Otherwise, returns empty string.
+NET_EXPORT_PRIVATE std::string GetWifiSSID();
+
// Register JNI methods
NET_EXPORT bool RegisterNetworkLibrary(JNIEnv* env);
« no previous file with comments | « net/android/java/src/org/chromium/net/NetworkChangeNotifierAutoDetect.java ('k') | net/android/network_library.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698