| 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_IMPL_H_ | 5 #ifndef DEVICE_USB_USB_DEVICE_IMPL_H_ |
| 6 #define DEVICE_USB_USB_DEVICE_IMPL_H_ | 6 #define DEVICE_USB_USB_DEVICE_IMPL_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| 11 #include <utility> | 11 #include <utility> |
| 12 | 12 |
| 13 #include "base/files/scoped_file.h" | 13 #include "base/files/scoped_file.h" |
| 14 #include "base/macros.h" | 14 #include "base/macros.h" |
| 15 #include "base/threading/thread_checker.h" | 15 #include "base/threading/thread_checker.h" |
| 16 #include "build/build_config.h" | 16 #include "build/build_config.h" |
| 17 #include "device/usb/usb_device.h" | 17 #include "device/usb/usb_device.h" |
| 18 #include "device/usb/webusb_descriptors.h" | 18 #include "device/usb/webusb_descriptors.h" |
| 19 | 19 |
| 20 namespace base { | 20 namespace base { |
| 21 class SequencedTaskRunner; | 21 class SequencedTaskRunner; |
| 22 } | 22 } |
| 23 | 23 |
| 24 namespace device { | 24 namespace device { |
| 25 | 25 |
| 26 struct UsbConfigDescriptor; | |
| 27 struct UsbDeviceDescriptor; | 26 struct UsbDeviceDescriptor; |
| 28 | 27 |
| 29 class UsbDeviceLinux : public UsbDevice { | 28 class UsbDeviceLinux : public UsbDevice { |
| 30 public: | 29 public: |
| 31 // UsbDevice implementation: | 30 // UsbDevice implementation: |
| 32 #if defined(OS_CHROMEOS) | 31 #if defined(OS_CHROMEOS) |
| 33 void CheckUsbAccess(const ResultCallback& callback) override; | 32 void CheckUsbAccess(const ResultCallback& callback) override; |
| 34 #endif // OS_CHROMEOS | 33 #endif // OS_CHROMEOS |
| 35 void Open(const OpenCallback& callback) override; | 34 void Open(const OpenCallback& callback) override; |
| 36 | 35 |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 | 74 |
| 76 scoped_refptr<base::SequencedTaskRunner> task_runner_; | 75 scoped_refptr<base::SequencedTaskRunner> task_runner_; |
| 77 scoped_refptr<base::SequencedTaskRunner> blocking_task_runner_; | 76 scoped_refptr<base::SequencedTaskRunner> blocking_task_runner_; |
| 78 | 77 |
| 79 DISALLOW_COPY_AND_ASSIGN(UsbDeviceLinux); | 78 DISALLOW_COPY_AND_ASSIGN(UsbDeviceLinux); |
| 80 }; | 79 }; |
| 81 | 80 |
| 82 } // namespace device | 81 } // namespace device |
| 83 | 82 |
| 84 #endif // DEVICE_USB_USB_DEVICE_IMPL_H_ | 83 #endif // DEVICE_USB_USB_DEVICE_IMPL_H_ |
| OLD | NEW |