| 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 #include <list> | 5 #include <list> |
| 6 #include <memory> | 6 #include <memory> |
| 7 #include <unordered_map> | 7 #include <unordered_map> |
| 8 | 8 |
| 9 #include "base/macros.h" | 9 #include "base/macros.h" |
| 10 #include "base/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
| 11 #include "device/usb/usb_service.h" | 11 #include "device/usb/usb_service.h" |
| 12 | 12 |
| 13 namespace base { | 13 namespace base { |
| 14 class SequencedTaskRunner; | 14 class SequencedTaskRunner; |
| 15 class SingleThreadTaskRunner; | |
| 16 } | 15 } |
| 17 | 16 |
| 18 namespace device { | 17 namespace device { |
| 19 | 18 |
| 20 struct UsbDeviceDescriptor; | 19 struct UsbDeviceDescriptor; |
| 21 class UsbDeviceLinux; | 20 class UsbDeviceLinux; |
| 22 | 21 |
| 23 class UsbServiceLinux : public UsbService { | 22 class UsbServiceLinux : public UsbService { |
| 24 public: | 23 public: |
| 25 explicit UsbServiceLinux( | 24 explicit UsbServiceLinux( |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 | 60 |
| 62 std::unique_ptr<FileThreadHelper> helper_; | 61 std::unique_ptr<FileThreadHelper> helper_; |
| 63 DeviceMap devices_by_path_; | 62 DeviceMap devices_by_path_; |
| 64 | 63 |
| 65 base::WeakPtrFactory<UsbServiceLinux> weak_factory_; | 64 base::WeakPtrFactory<UsbServiceLinux> weak_factory_; |
| 66 | 65 |
| 67 DISALLOW_COPY_AND_ASSIGN(UsbServiceLinux); | 66 DISALLOW_COPY_AND_ASSIGN(UsbServiceLinux); |
| 68 }; | 67 }; |
| 69 | 68 |
| 70 } // namespace device | 69 } // namespace device |
| OLD | NEW |