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_H_ | 5 #ifndef DEVICE_USB_USB_DEVICE_HANDLE_H_ |
6 #define DEVICE_USB_USB_DEVICE_HANDLE_H_ | 6 #define DEVICE_USB_USB_DEVICE_HANDLE_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
11 #include <map> | 11 #include <map> |
12 #include <vector> | 12 #include <vector> |
13 | 13 |
14 #include "base/callback.h" | 14 #include "base/callback_forward.h" |
15 #include "base/macros.h" | 15 #include "base/macros.h" |
16 #include "base/memory/ref_counted.h" | 16 #include "base/memory/ref_counted.h" |
17 #include "base/strings/string16.h" | 17 #include "base/strings/string16.h" |
18 #include "base/threading/thread_checker.h" | 18 #include "base/threading/thread_checker.h" |
19 #include "device/usb/usb_descriptors.h" | 19 #include "device/usb/usb_descriptors.h" |
20 #include "net/base/io_buffer.h" | 20 |
| 21 namespace net { |
| 22 class IOBuffer; |
| 23 } |
21 | 24 |
22 namespace device { | 25 namespace device { |
23 | 26 |
24 class UsbDevice; | 27 class UsbDevice; |
25 | 28 |
26 enum UsbTransferStatus { | 29 enum UsbTransferStatus { |
27 USB_TRANSFER_COMPLETED = 0, | 30 USB_TRANSFER_COMPLETED = 0, |
28 USB_TRANSFER_ERROR, | 31 USB_TRANSFER_ERROR, |
29 USB_TRANSFER_TIMEOUT, | 32 USB_TRANSFER_TIMEOUT, |
30 USB_TRANSFER_CANCELLED, | 33 USB_TRANSFER_CANCELLED, |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 UsbDeviceHandle(); | 108 UsbDeviceHandle(); |
106 | 109 |
107 virtual ~UsbDeviceHandle(); | 110 virtual ~UsbDeviceHandle(); |
108 | 111 |
109 DISALLOW_COPY_AND_ASSIGN(UsbDeviceHandle); | 112 DISALLOW_COPY_AND_ASSIGN(UsbDeviceHandle); |
110 }; | 113 }; |
111 | 114 |
112 } // namespace device | 115 } // namespace device |
113 | 116 |
114 #endif // DEVICE_USB_USB_DEVICE_HANDLE_H_ | 117 #endif // DEVICE_USB_USB_DEVICE_HANDLE_H_ |
OLD | NEW |