| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef DEVICE_USB_USB_DEVICE_HANDLE_ANDROID_H_ | 5 #ifndef DEVICE_USB_USB_DEVICE_HANDLE_ANDROID_H_ |
| 6 #define DEVICE_USB_USB_DEVICE_HANDLE_ANDROID_H_ | 6 #define DEVICE_USB_USB_DEVICE_HANDLE_ANDROID_H_ |
| 7 | 7 |
| 8 #include "base/android/scoped_java_ref.h" | 8 #include "base/android/scoped_java_ref.h" |
| 9 #include "base/memory/ref_counted.h" |
| 10 #include "base/sequenced_task_runner.h" |
| 9 #include "device/usb/usb_device_handle_usbfs.h" | 11 #include "device/usb/usb_device_handle_usbfs.h" |
| 10 | 12 |
| 11 namespace device { | 13 namespace device { |
| 12 | 14 |
| 13 class UsbDevice; | 15 class UsbDevice; |
| 14 | 16 |
| 15 // Extends UsbDeviceHandleUsbfs with support for managing a device connection | 17 // Extends UsbDeviceHandleUsbfs with support for managing a device connection |
| 16 // through an instance of android.hardware.usb.UsbDeviceConnection. | 18 // through an instance of android.hardware.usb.UsbDeviceConnection. |
| 17 class UsbDeviceHandleAndroid : public UsbDeviceHandleUsbfs { | 19 class UsbDeviceHandleAndroid : public UsbDeviceHandleUsbfs { |
| 18 public: | 20 public: |
| (...skipping 17 matching lines...) Expand all Loading... |
| 36 | 38 |
| 37 void CloseConnection(); | 39 void CloseConnection(); |
| 38 | 40 |
| 39 // Java object org.chromium.device.usb.ChromeUsbConnection. | 41 // Java object org.chromium.device.usb.ChromeUsbConnection. |
| 40 base::android::ScopedJavaGlobalRef<jobject> j_object_; | 42 base::android::ScopedJavaGlobalRef<jobject> j_object_; |
| 41 }; | 43 }; |
| 42 | 44 |
| 43 } // namespace device | 45 } // namespace device |
| 44 | 46 |
| 45 #endif // DEVICE_USB_USB_DEVICE_HANDLE_ANDROID_H_ | 47 #endif // DEVICE_USB_USB_DEVICE_HANDLE_ANDROID_H_ |
| OLD | NEW |