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 <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 "device/usb/usb_interface.h" | 15 #include "device/usb/usb_descriptors.h" |
16 #include "net/base/io_buffer.h" | 16 #include "net/base/io_buffer.h" |
17 | 17 |
18 namespace device { | 18 namespace device { |
19 | 19 |
20 class UsbDevice; | 20 class UsbDevice; |
21 | 21 |
22 enum UsbTransferStatus { | 22 enum UsbTransferStatus { |
23 USB_TRANSFER_COMPLETED = 0, | 23 USB_TRANSFER_COMPLETED = 0, |
24 USB_TRANSFER_ERROR, | 24 USB_TRANSFER_ERROR, |
25 USB_TRANSFER_TIMEOUT, | 25 USB_TRANSFER_TIMEOUT, |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 UsbDeviceHandle() {}; | 101 UsbDeviceHandle() {}; |
102 | 102 |
103 virtual ~UsbDeviceHandle() {}; | 103 virtual ~UsbDeviceHandle() {}; |
104 | 104 |
105 DISALLOW_COPY_AND_ASSIGN(UsbDeviceHandle); | 105 DISALLOW_COPY_AND_ASSIGN(UsbDeviceHandle); |
106 }; | 106 }; |
107 | 107 |
108 } // namespace device | 108 } // namespace device |
109 | 109 |
110 #endif // DEVICE_USB_USB_DEVICE_HANDLE_H_ | 110 #endif // DEVICE_USB_USB_DEVICE_HANDLE_H_ |
OLD | NEW |