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_USBFS_H_ | 5 #ifndef DEVICE_USB_USB_DEVICE_HANDLE_USBFS_H_ |
6 #define DEVICE_USB_USB_DEVICE_HANDLE_USBFS_H_ | 6 #define DEVICE_USB_USB_DEVICE_HANDLE_USBFS_H_ |
7 | 7 |
8 #include <list> | 8 #include <list> |
9 #include <map> | 9 #include <map> |
10 #include <memory> | 10 #include <memory> |
11 #include <vector> | 11 #include <vector> |
12 | 12 |
13 #include "base/files/scoped_file.h" | 13 #include "base/files/scoped_file.h" |
| 14 #include "base/memory/ref_counted.h" |
| 15 #include "base/single_thread_task_runner.h" |
14 #include "device/usb/usb_device_handle.h" | 16 #include "device/usb/usb_device_handle.h" |
15 | 17 |
16 struct usbdevfs_urb; | 18 struct usbdevfs_urb; |
17 | 19 |
18 namespace base { | 20 namespace base { |
19 class SequencedTaskRunner; | 21 class SequencedTaskRunner; |
20 class SingleThreadTaskRunner; | 22 class SingleThreadTaskRunner; |
21 } | 23 } |
22 | 24 |
23 namespace device { | 25 namespace device { |
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
162 // thread's message loop is destroyed but can also be freed by this class on | 164 // thread's message loop is destroyed but can also be freed by this class on |
163 // destruction. | 165 // destruction. |
164 FileThreadHelper* helper_; | 166 FileThreadHelper* helper_; |
165 | 167 |
166 std::list<std::unique_ptr<Transfer>> transfers_; | 168 std::list<std::unique_ptr<Transfer>> transfers_; |
167 }; | 169 }; |
168 | 170 |
169 } // namespace device | 171 } // namespace device |
170 | 172 |
171 #endif // DEVICE_USB_USB_DEVICE_HANDLE_USBFS_H_ | 173 #endif // DEVICE_USB_USB_DEVICE_HANDLE_USBFS_H_ |
OLD | NEW |