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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
64 NET_EXPORT std::string GetTelephonyNetworkOperator(); | 64 NET_EXPORT std::string GetTelephonyNetworkOperator(); |
65 | 65 |
66 // Returns MCC+MNC (mobile country code + mobile network code) as | 66 // Returns MCC+MNC (mobile country code + mobile network code) as |
67 // the numeric name of the current SIM operator. | 67 // the numeric name of the current SIM operator. |
68 NET_EXPORT std::string GetTelephonySimOperator(); | 68 NET_EXPORT std::string GetTelephonySimOperator(); |
69 | 69 |
70 // Returns true if the device is roaming on the currently active network. When | 70 // Returns true if the device is roaming on the currently active network. When |
71 // true, it suggests that use of data may incur extra costs. | 71 // true, it suggests that use of data may incur extra costs. |
72 NET_EXPORT bool GetIsRoaming(); | 72 NET_EXPORT bool GetIsRoaming(); |
73 | 73 |
74 // Returns true if the captive portal probe was blocked for the current network. | |
pauljensen
2016/11/24 00:11:19
Same comments as in previous file
tbansal1
2016/11/24 00:43:09
Done.
| |
75 // The method would return false if the captive portal probe was not blocked on | |
76 // the current network, the login process to the captive portal has been | |
77 // successfully completed, or if the captive portal status can't be determined. | |
78 // Requires ACCESS_NETWORK_STATE permission. Only available on Android | |
79 // Marshmallow and later versions. Returns false on earlier versions. | |
80 NET_EXPORT bool GetIsCaptivePortal(); | |
81 | |
74 // Gets the SSID of the currently associated WiFi access point if there is one. | 82 // Gets the SSID of the currently associated WiFi access point if there is one. |
75 // Otherwise, returns empty string. | 83 // Otherwise, returns empty string. |
76 NET_EXPORT_PRIVATE std::string GetWifiSSID(); | 84 NET_EXPORT_PRIVATE std::string GetWifiSSID(); |
77 | 85 |
78 } // namespace android | 86 } // namespace android |
79 } // namespace net | 87 } // namespace net |
80 | 88 |
81 #endif // NET_ANDROID_NETWORK_LIBRARY_H_ | 89 #endif // NET_ANDROID_NETWORK_LIBRARY_H_ |
OLD | NEW |