blob: ec04b61ed662d25b6c192877a2b8bb649cead18c [file] [log] [blame]
// 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_