Chromium Code Reviews| 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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 75 NET_EXPORT std::string GetTelephonyNetworkOperator(); | 75 NET_EXPORT std::string GetTelephonyNetworkOperator(); |
| 76 | 76 |
| 77 // Returns MCC+MNC (mobile country code + mobile network code) as | 77 // Returns MCC+MNC (mobile country code + mobile network code) as |
| 78 // the numeric name of the current SIM operator. | 78 // the numeric name of the current SIM operator. |
| 79 NET_EXPORT std::string GetTelephonySimOperator(); | 79 NET_EXPORT std::string GetTelephonySimOperator(); |
| 80 | 80 |
| 81 // Returns true if the device is roaming on the currently active network. When | 81 // Returns true if the device is roaming on the currently active network. When |
| 82 // true, it suggests that use of data may incur extra costs. | 82 // true, it suggests that use of data may incur extra costs. |
| 83 NET_EXPORT bool GetIsRoaming(); | 83 NET_EXPORT bool GetIsRoaming(); |
| 84 | 84 |
| 85 // Returns the current SSID if device is connected to Wi-Fi network. | |
|
Ryan Hamilton
2016/01/26 20:15:49
nit: "connected to a Wi-Fi network" (add "a")
ripp
2016/01/27 12:09:06
Done.
| |
| 86 NET_EXPORT std::string GetCurrentWifiConnectionSsid(); | |
| 87 | |
| 85 // Register JNI methods | 88 // Register JNI methods |
| 86 NET_EXPORT bool RegisterNetworkLibrary(JNIEnv* env); | 89 NET_EXPORT bool RegisterNetworkLibrary(JNIEnv* env); |
| 87 | 90 |
| 88 } // namespace android | 91 } // namespace android |
| 89 } // namespace net | 92 } // namespace net |
| 90 | 93 |
| 91 #endif // NET_ANDROID_NETWORK_LIBRARY_H_ | 94 #endif // NET_ANDROID_NETWORK_LIBRARY_H_ |
| OLD | NEW |