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

Side by Side Diff: device/usb/usb_interface_android.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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 DEVICE_USB_USB_INTERFACE_ANDROID_H_ 5 #ifndef DEVICE_USB_USB_INTERFACE_ANDROID_H_
6 #define DEVICE_USB_USB_INTERFACE_ANDROID_H_ 6 #define DEVICE_USB_USB_INTERFACE_ANDROID_H_
7 7
8 #include "base/android/scoped_java_ref.h" 8 #include "base/android/scoped_java_ref.h"
9 #include "device/usb/usb_descriptors.h" 9 #include "device/usb/usb_descriptors.h"
10 10
11 namespace device { 11 namespace device {
12 12
13 class UsbInterfaceAndroid { 13 class UsbInterfaceAndroid {
14 public: 14 public:
15 // Register C++ methods exposed to Java using JNI.
16 static bool RegisterJNI(JNIEnv* env);
17
18 static UsbInterfaceDescriptor Convert( 15 static UsbInterfaceDescriptor Convert(
19 JNIEnv* env, 16 JNIEnv* env,
20 const base::android::JavaRef<jobject>& usb_interface); 17 const base::android::JavaRef<jobject>& usb_interface);
21 }; 18 };
22 19
23 } // namespace device 20 } // namespace device
24 21
25 #endif // DEVICE_USB_USB_INTERFACE_ANDROID_H_ 22 #endif // DEVICE_USB_USB_INTERFACE_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698