usb_endpoint_android.h 635 B

12345678910111213141516171819202122
  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. #ifndef SERVICES_DEVICE_USB_USB_ENDPOINT_ANDROID_H_
  5. #define SERVICES_DEVICE_USB_USB_ENDPOINT_ANDROID_H_
  6. #include "base/android/scoped_java_ref.h"
  7. #include "services/device/public/mojom/usb_device.mojom.h"
  8. namespace device {
  9. class UsbEndpointAndroid {
  10. public:
  11. static mojom::UsbEndpointInfoPtr Convert(
  12. JNIEnv* env,
  13. const base::android::JavaRef<jobject>& usb_endpoint);
  14. };
  15. } // namespace device
  16. #endif // SERVICES_DEVICE_USB_USB_ENDPOINT_ANDROID_H_