| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_IMPL_H_ | 5 #ifndef DEVICE_USB_USB_DEVICE_HANDLE_IMPL_H_ |
| 6 #define DEVICE_USB_USB_DEVICE_HANDLE_IMPL_H_ | 6 #define DEVICE_USB_USB_DEVICE_HANDLE_IMPL_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 } | 31 } |
| 32 | 32 |
| 33 namespace device { | 33 namespace device { |
| 34 | 34 |
| 35 struct EndpointMapValue { | 35 struct EndpointMapValue { |
| 36 const UsbInterfaceDescriptor* interface; | 36 const UsbInterfaceDescriptor* interface; |
| 37 const UsbEndpointDescriptor* endpoint; | 37 const UsbEndpointDescriptor* endpoint; |
| 38 }; | 38 }; |
| 39 | 39 |
| 40 class UsbContext; | 40 class UsbContext; |
| 41 struct UsbConfigDescriptor; | |
| 42 class UsbDeviceImpl; | 41 class UsbDeviceImpl; |
| 43 | 42 |
| 44 typedef libusb_device_handle* PlatformUsbDeviceHandle; | 43 typedef libusb_device_handle* PlatformUsbDeviceHandle; |
| 45 typedef libusb_iso_packet_descriptor* PlatformUsbIsoPacketDescriptor; | 44 typedef libusb_iso_packet_descriptor* PlatformUsbIsoPacketDescriptor; |
| 46 typedef libusb_transfer* PlatformUsbTransferHandle; | 45 typedef libusb_transfer* PlatformUsbTransferHandle; |
| 47 | 46 |
| 48 // UsbDeviceHandle class provides basic I/O related functionalities. | 47 // UsbDeviceHandle class provides basic I/O related functionalities. |
| 49 class UsbDeviceHandleImpl : public UsbDeviceHandle { | 48 class UsbDeviceHandleImpl : public UsbDeviceHandle { |
| 50 public: | 49 public: |
| 51 scoped_refptr<UsbDevice> GetDevice() const override; | 50 scoped_refptr<UsbDevice> GetDevice() const override; |
| (...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 208 scoped_refptr<base::SequencedTaskRunner> blocking_task_runner_; | 207 scoped_refptr<base::SequencedTaskRunner> blocking_task_runner_; |
| 209 | 208 |
| 210 base::ThreadChecker thread_checker_; | 209 base::ThreadChecker thread_checker_; |
| 211 | 210 |
| 212 DISALLOW_COPY_AND_ASSIGN(UsbDeviceHandleImpl); | 211 DISALLOW_COPY_AND_ASSIGN(UsbDeviceHandleImpl); |
| 213 }; | 212 }; |
| 214 | 213 |
| 215 } // namespace device | 214 } // namespace device |
| 216 | 215 |
| 217 #endif // DEVICE_USB_USB_DEVICE_HANDLE_IMPL_H_ | 216 #endif // DEVICE_USB_USB_DEVICE_HANDLE_IMPL_H_ |
| OLD | NEW |