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

Side by Side Diff: net/android/cellular_signal_strength.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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_CELLULAR_SIGNAL_STRENGTH_H_ 5 #ifndef NET_ANDROID_CELLULAR_SIGNAL_STRENGTH_H_
6 #define NET_ANDROID_CELLULAR_SIGNAL_STRENGTH_H_ 6 #define NET_ANDROID_CELLULAR_SIGNAL_STRENGTH_H_
7 7
8 #include <jni.h> 8 #include <jni.h>
pauljensen 2017/04/13 11:26:57 This is unused now.
9 #include <stdint.h> 9 #include <stdint.h>
10 10
11 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
12 #include "net/base/net_export.h" 12 #include "net/base/net_export.h"
13 13
14 namespace net { 14 namespace net {
15 15
16 namespace android { 16 namespace android {
17 17
18 namespace cellular_signal_strength { 18 namespace cellular_signal_strength {
19 19
20 // Returns true if the signal strength (in dbM) of the currently registered 20 // Returns true if the signal strength (in dbM) of the currently registered
21 // cellular connection is available, and sets |*signal_strength_dbm| to that 21 // cellular connection is available, and sets |*signal_strength_dbm| to that
22 // value. 22 // value.
23 NET_EXPORT bool GetSignalStrengthDbm(int32_t* signal_strength_dbm) 23 NET_EXPORT bool GetSignalStrengthDbm(int32_t* signal_strength_dbm)
24 WARN_UNUSED_RESULT; 24 WARN_UNUSED_RESULT;
25 25
26 // Returns true if the signal strength level (between 0 and 4, both inclusive) 26 // Returns true if the signal strength level (between 0 and 4, both inclusive)
27 // of the currently registered cellular connection is available, and sets 27 // of the currently registered cellular connection is available, and sets
28 // |*signal_strength_level| to that value with lower value indicating lower 28 // |*signal_strength_level| to that value with lower value indicating lower
29 // signal strength. 29 // signal strength.
30 NET_EXPORT bool GetSignalStrengthLevel(int32_t* signal_strength_level) 30 NET_EXPORT bool GetSignalStrengthLevel(int32_t* signal_strength_level)
31 WARN_UNUSED_RESULT; 31 WARN_UNUSED_RESULT;
32 32
33 bool Register(JNIEnv* env);
34
35 } // namespace cellular_signal_strength 33 } // namespace cellular_signal_strength
36 34
37 } // namespace android 35 } // namespace android
38 36
39 } // namespace net 37 } // namespace net
40 38
41 #endif // NET_ANDROID_CELLULAR_SIGNAL_STRENGTH_H_ 39 #endif // NET_ANDROID_CELLULAR_SIGNAL_STRENGTH_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698