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

Unified Diff: device/usb/usb_interface_android.h

Issue 1565313002: Reland of Implement basic USB device enumeration on Android. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Dependency fix added to reland. Created 4 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « device/usb/usb_endpoint_android.cc ('k') | device/usb/usb_interface_android.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/usb/usb_interface_android.h
diff --git a/device/usb/usb_interface_android.h b/device/usb/usb_interface_android.h
new file mode 100644
index 0000000000000000000000000000000000000000..ec04b61ed662d25b6c192877a2b8bb649cead18c
--- /dev/null
+++ b/device/usb/usb_interface_android.h
@@ -0,0 +1,25 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef DEVICE_USB_USB_INTERFACE_ANDROID_H_
+#define DEVICE_USB_USB_INTERFACE_ANDROID_H_
+
+#include "base/android/scoped_java_ref.h"
+#include "device/usb/usb_descriptors.h"
+
+namespace device {
+
+class UsbInterfaceAndroid {
+ public:
+ // Register C++ methods exposed to Java using JNI.
+ static bool RegisterJNI(JNIEnv* env);
+
+ static UsbInterfaceDescriptor Convert(
+ JNIEnv* env,
+ const base::android::JavaRef<jobject>& usb_interface);
+};
+
+} // namespace device
+
+#endif // DEVICE_USB_USB_INTERFACE_ANDROID_H_
« no previous file with comments | « device/usb/usb_endpoint_android.cc ('k') | device/usb/usb_interface_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698