| Index: device/usb/usb_endpoint_android.h
|
| diff --git a/device/usb/usb_endpoint_android.h b/device/usb/usb_endpoint_android.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..3fc835cd41fb867c5fb10e6ee045a7d8fa89cc44
|
| --- /dev/null
|
| +++ b/device/usb/usb_endpoint_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_ENDPOINT_ANDROID_H_
|
| +#define DEVICE_USB_USB_ENDPOINT_ANDROID_H_
|
| +
|
| +#include "base/android/scoped_java_ref.h"
|
| +#include "device/usb/usb_descriptors.h"
|
| +
|
| +namespace device {
|
| +
|
| +class UsbEndpointAndroid {
|
| + public:
|
| + // Register C++ methods exposed to Java using JNI.
|
| + static bool RegisterJNI(JNIEnv* env);
|
| +
|
| + static UsbEndpointDescriptor Convert(
|
| + JNIEnv* env,
|
| + const base::android::JavaRef<jobject>& usb_endpoint);
|
| +};
|
| +
|
| +} // namespace device
|
| +
|
| +#endif // DEVICE_USB_USB_ENDPOINT_ANDROID_H_
|
|
|