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 a Wi-Fi network. | |
86 NET_EXPORT std::string GetWifiSSID(); | |
87 | |
88 // Register JNI methods | 85 // Register JNI methods |
89 NET_EXPORT bool RegisterNetworkLibrary(JNIEnv* env); | 86 NET_EXPORT bool RegisterNetworkLibrary(JNIEnv* env); |
90 | 87 |
91 } // namespace android | 88 } // namespace android |
92 } // namespace net | 89 } // namespace net |
93 | 90 |
94 #endif // NET_ANDROID_NETWORK_LIBRARY_H_ | 91 #endif // NET_ANDROID_NETWORK_LIBRARY_H_ |
OLD | NEW |