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

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

Issue 2146753002: Android: Remove unneeded RegisterNatives() calls (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Android: Don't require RegisterNatives if there are none Created 4 years, 4 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>
pauljensen 2017/04/13 11:26:57 This looks unused now.
9 #include <stddef.h> 9 #include <stddef.h>
10 #include <stdint.h> 10 #include <stdint.h>
11 11
12 #include <string> 12 #include <string>
13 #include <vector> 13 #include <vector>
14 14
15 #include "net/android/cert_verify_result_android.h" 15 #include "net/android/cert_verify_result_android.h"
16 #include "net/base/mime_util.h" 16 #include "net/base/mime_util.h"
17 #include "net/base/net_export.h" 17 #include "net/base/net_export.h"
18 18
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
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. 80 // Gets the SSID of the currently associated WiFi access point if there is one.
81 // Otherwise, returns empty string. 81 // Otherwise, returns empty string.
82 NET_EXPORT_PRIVATE std::string GetWifiSSID(); 82 NET_EXPORT_PRIVATE std::string GetWifiSSID();
83 83
84 // Register JNI methods
85 NET_EXPORT bool RegisterNetworkLibrary(JNIEnv* env);
86
87 } // namespace android 84 } // namespace android
88 } // namespace net 85 } // namespace net
89 86
90 #endif // NET_ANDROID_NETWORK_LIBRARY_H_ 87 #endif // NET_ANDROID_NETWORK_LIBRARY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698