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 COMPONENTS_USB_SERVICE_USB_DEVICE_HANDLE_IMPL_H_ | 5 #ifndef DEVICE_USB_USB_DEVICE_HANDLE_IMPL_H_ |
6 #define COMPONENTS_USB_SERVICE_USB_DEVICE_HANDLE_IMPL_H_ | 6 #define DEVICE_USB_USB_DEVICE_HANDLE_IMPL_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/callback.h" | 11 #include "base/callback.h" |
12 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
13 #include "base/strings/string16.h" | 13 #include "base/strings/string16.h" |
14 #include "base/threading/thread_checker.h" | 14 #include "base/threading/thread_checker.h" |
15 #include "components/usb_service/usb_device_handle.h" | 15 #include "device/usb/usb_device_handle.h" |
16 #include "components/usb_service/usb_interface.h" | 16 #include "device/usb/usb_interface.h" |
17 #include "net/base/io_buffer.h" | 17 #include "net/base/io_buffer.h" |
18 #include "third_party/libusb/src/libusb/libusb.h" | 18 #include "third_party/libusb/src/libusb/libusb.h" |
19 | 19 |
20 namespace base { | 20 namespace base { |
21 class SingleThreadTaskRunner; | 21 class SingleThreadTaskRunner; |
22 } | 22 } |
23 | 23 |
24 namespace usb_service { | 24 namespace device { |
25 | 25 |
26 class UsbContext; | 26 class UsbContext; |
27 class UsbConfigDescriptor; | 27 class UsbConfigDescriptor; |
28 class UsbDeviceImpl; | 28 class UsbDeviceImpl; |
29 | 29 |
30 typedef libusb_device_handle* PlatformUsbDeviceHandle; | 30 typedef libusb_device_handle* PlatformUsbDeviceHandle; |
31 typedef libusb_iso_packet_descriptor* PlatformUsbIsoPacketDescriptor; | 31 typedef libusb_iso_packet_descriptor* PlatformUsbIsoPacketDescriptor; |
32 typedef libusb_transfer* PlatformUsbTransferHandle; | 32 typedef libusb_transfer* PlatformUsbTransferHandle; |
33 | 33 |
34 // UsbDeviceHandle class provides basic I/O related functionalities. | 34 // UsbDeviceHandle class provides basic I/O related functionalities. |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
162 // before this handle. | 162 // before this handle. |
163 scoped_refptr<UsbContext> context_; | 163 scoped_refptr<UsbContext> context_; |
164 | 164 |
165 scoped_refptr<base::SingleThreadTaskRunner> task_runner_; | 165 scoped_refptr<base::SingleThreadTaskRunner> task_runner_; |
166 | 166 |
167 base::ThreadChecker thread_checker_; | 167 base::ThreadChecker thread_checker_; |
168 | 168 |
169 DISALLOW_COPY_AND_ASSIGN(UsbDeviceHandleImpl); | 169 DISALLOW_COPY_AND_ASSIGN(UsbDeviceHandleImpl); |
170 }; | 170 }; |
171 | 171 |
172 } // namespace usb_service | 172 } // namespace device |
173 | 173 |
174 #endif // COMPONENTS_USB_SERVICE_USB_DEVICE_HANDLE_IMPL_H_ | 174 #endif // DEVICE_USB_USB_DEVICE_HANDLE_IMPL_H_ |
OLD | NEW |