Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(556)

Side by Side Diff: device/usb/usb_service_impl.h

Issue 2690383002: Add device path enumeration to the new Windows USB backend. (Closed)
Patch Set: Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "device/usb/usb_service.h" 5 #include "device/usb/usb_service.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <map> 9 #include <map>
10 #include <queue> 10 #include <queue>
(...skipping 16 matching lines...) Expand all
27 27
28 namespace base { 28 namespace base {
29 class SequencedTaskRunner; 29 class SequencedTaskRunner;
30 } 30 }
31 31
32 namespace device { 32 namespace device {
33 33
34 typedef struct libusb_device* PlatformUsbDevice; 34 typedef struct libusb_device* PlatformUsbDevice;
35 typedef struct libusb_context* PlatformUsbContext; 35 typedef struct libusb_context* PlatformUsbContext;
36 36
37 class UsbDeviceImpl;
scheib 2017/02/14 19:40:05 You don't use this, at least in this patch.
Reilly Grant (use Gerrit) 2017/02/15 22:03:13 Changing headers broke compilation of this file wh
38
37 class UsbServiceImpl : 39 class UsbServiceImpl :
38 #if defined(OS_WIN) 40 #if defined(OS_WIN)
39 public DeviceMonitorWin::Observer, 41 public DeviceMonitorWin::Observer,
40 #endif // OS_WIN 42 #endif // OS_WIN
41 public UsbService { 43 public UsbService {
42 public: 44 public:
43 explicit UsbServiceImpl( 45 explicit UsbServiceImpl(
44 scoped_refptr<base::SequencedTaskRunner> blocking_task_runner); 46 scoped_refptr<base::SequencedTaskRunner> blocking_task_runner);
45 ~UsbServiceImpl() override; 47 ~UsbServiceImpl() override;
46 48
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 #if defined(OS_WIN) 118 #if defined(OS_WIN)
117 ScopedObserver<DeviceMonitorWin, DeviceMonitorWin::Observer> device_observer_; 119 ScopedObserver<DeviceMonitorWin, DeviceMonitorWin::Observer> device_observer_;
118 #endif // OS_WIN 120 #endif // OS_WIN
119 121
120 base::WeakPtrFactory<UsbServiceImpl> weak_factory_; 122 base::WeakPtrFactory<UsbServiceImpl> weak_factory_;
121 123
122 DISALLOW_COPY_AND_ASSIGN(UsbServiceImpl); 124 DISALLOW_COPY_AND_ASSIGN(UsbServiceImpl);
123 }; 125 };
124 126
125 } // namespace device 127 } // namespace device
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698