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

Side by Side Diff: net/android/network_library.h

Issue 1633733005: Native SSID extraction moved to platform code on Android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added permission for net_unittests Created 4 years, 10 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 unified diff | Download patch
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « net/android/java/src/org/chromium/net/AndroidNetworkLibrary.java ('k') | net/android/network_library.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698