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_IMPL_H_ | 5 #ifndef DEVICE_USB_USB_DEVICE_IMPL_H_ |
6 #define COMPONENTS_USB_SERVICE_USB_DEVICE_IMPL_H_ | 6 #define DEVICE_USB_USB_DEVICE_IMPL_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
11 #include "base/callback.h" | 11 #include "base/callback.h" |
12 #include "base/threading/thread_checker.h" | 12 #include "base/threading/thread_checker.h" |
13 #include "components/usb_service/usb_device.h" | 13 #include "device/usb/usb_device.h" |
14 | 14 |
15 struct libusb_device; | 15 struct libusb_device; |
16 struct libusb_config_descriptor; | 16 struct libusb_config_descriptor; |
17 | 17 |
18 namespace base { | 18 namespace base { |
19 class SingleThreadTaskRunner; | 19 class SingleThreadTaskRunner; |
20 } | 20 } |
21 | 21 |
22 namespace usb_service { | 22 namespace device { |
23 | 23 |
24 class UsbDeviceHandleImpl; | 24 class UsbDeviceHandleImpl; |
25 class UsbContext; | 25 class UsbContext; |
26 | 26 |
27 typedef libusb_device* PlatformUsbDevice; | 27 typedef libusb_device* PlatformUsbDevice; |
28 typedef libusb_config_descriptor* PlatformUsbConfigDescriptor; | 28 typedef libusb_config_descriptor* PlatformUsbConfigDescriptor; |
29 | 29 |
30 class UsbDeviceImpl : public UsbDevice { | 30 class UsbDeviceImpl : public UsbDevice { |
31 public: | 31 public: |
32 // UsbDevice implementation: | 32 // UsbDevice implementation: |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 // Opened handles. | 65 // Opened handles. |
66 typedef std::vector<scoped_refptr<UsbDeviceHandleImpl> > HandlesVector; | 66 typedef std::vector<scoped_refptr<UsbDeviceHandleImpl> > HandlesVector; |
67 HandlesVector handles_; | 67 HandlesVector handles_; |
68 | 68 |
69 // Reference to the UI thread for permission-broker calls. | 69 // Reference to the UI thread for permission-broker calls. |
70 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner_; | 70 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner_; |
71 | 71 |
72 DISALLOW_COPY_AND_ASSIGN(UsbDeviceImpl); | 72 DISALLOW_COPY_AND_ASSIGN(UsbDeviceImpl); |
73 }; | 73 }; |
74 | 74 |
75 } // namespace usb_service | 75 } // namespace device |
76 | 76 |
77 #endif // COMPONENTS_USB_SERVICE_USB_DEVICE_IMPL_H_ | 77 #endif // DEVICE_USB_USB_DEVICE_IMPL_H_ |
OLD | NEW |