| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef DEVICE_USB_USB_INTERFACE_ANDROID_H_ | |
| 6 #define DEVICE_USB_USB_INTERFACE_ANDROID_H_ | |
| 7 | |
| 8 #include "base/android/scoped_java_ref.h" | |
| 9 #include "device/usb/usb_descriptors.h" | |
| 10 | |
| 11 namespace device { | |
| 12 | |
| 13 class UsbInterfaceAndroid { | |
| 14 public: | |
| 15 // Register C++ methods exposed to Java using JNI. | |
| 16 static bool RegisterJNI(JNIEnv* env); | |
| 17 | |
| 18 static UsbInterfaceDescriptor Convert( | |
| 19 JNIEnv* env, | |
| 20 const base::android::JavaRef<jobject>& usb_interface); | |
| 21 }; | |
| 22 | |
| 23 } // namespace device | |
| 24 | |
| 25 #endif // DEVICE_USB_USB_INTERFACE_ANDROID_H_ | |
| OLD | NEW |