summaryrefslogtreecommitdiff
path: root/chromium/device/usb/usb_endpoint_android.h
blob: e56e514ed4fc51d1e3d996c10a8a9c120823eaa7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// 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:
  static UsbEndpointDescriptor Convert(
      JNIEnv* env,
      const base::android::JavaRef<jobject>& usb_endpoint);
};

}  // namespace device

#endif  // DEVICE_USB_USB_ENDPOINT_ANDROID_H_