| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef NET_ANDROID_NETWORK_LIBRARY_H_ | 5 #ifndef NET_ANDROID_NETWORK_LIBRARY_H_ |
| 6 #define NET_ANDROID_NETWORK_LIBRARY_H_ | 6 #define NET_ANDROID_NETWORK_LIBRARY_H_ |
| 7 | 7 |
| 8 #include <jni.h> | 8 #include <jni.h> |
| 9 #include <stddef.h> | 9 #include <stddef.h> |
| 10 #include <stdint.h> | 10 #include <stdint.h> |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 NET_EXPORT std::string GetTelephonyNetworkOperator(); | 70 NET_EXPORT std::string GetTelephonyNetworkOperator(); |
| 71 | 71 |
| 72 // Returns MCC+MNC (mobile country code + mobile network code) as | 72 // Returns MCC+MNC (mobile country code + mobile network code) as |
| 73 // the numeric name of the current SIM operator. | 73 // the numeric name of the current SIM operator. |
| 74 NET_EXPORT std::string GetTelephonySimOperator(); | 74 NET_EXPORT std::string GetTelephonySimOperator(); |
| 75 | 75 |
| 76 // Returns true if the device is roaming on the currently active network. When | 76 // Returns true if the device is roaming on the currently active network. When |
| 77 // true, it suggests that use of data may incur extra costs. | 77 // true, it suggests that use of data may incur extra costs. |
| 78 NET_EXPORT bool GetIsRoaming(); | 78 NET_EXPORT bool GetIsRoaming(); |
| 79 | 79 |
| 80 // Gets the SSID of the currently associated WiFi access point if there is one. |
| 81 // Otherwise, returns empty string. |
| 82 NET_EXPORT_PRIVATE std::string GetWifiSSID(); |
| 83 |
| 80 // Register JNI methods | 84 // Register JNI methods |
| 81 NET_EXPORT bool RegisterNetworkLibrary(JNIEnv* env); | 85 NET_EXPORT bool RegisterNetworkLibrary(JNIEnv* env); |
| 82 | 86 |
| 83 } // namespace android | 87 } // namespace android |
| 84 } // namespace net | 88 } // namespace net |
| 85 | 89 |
| 86 #endif // NET_ANDROID_NETWORK_LIBRARY_H_ | 90 #endif // NET_ANDROID_NETWORK_LIBRARY_H_ |
| OLD | NEW |