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

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

Issue 2542903002: device: Cleanup class/struct forward declarations (Closed)
Patch Set: Created 4 years 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
« no previous file with comments | « device/usb/usb_device_linux.h ('k') | device/usb/usb_service_linux.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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>
11 #include <set> 11 #include <set>
12 12
13 #include "base/macros.h" 13 #include "base/macros.h"
14 #include "base/memory/weak_ptr.h" 14 #include "base/memory/weak_ptr.h"
15 #include "build/build_config.h" 15 #include "build/build_config.h"
16 #include "device/usb/usb_context.h" 16 #include "device/usb/usb_context.h"
17 #include "device/usb/usb_device_impl.h" 17 #include "device/usb/usb_device_impl.h"
18 #include "third_party/libusb/src/libusb/libusb.h" 18 #include "third_party/libusb/src/libusb/libusb.h"
19 19
20 #if defined(OS_WIN) 20 #if defined(OS_WIN)
21 #include "base/scoped_observer.h" 21 #include "base/scoped_observer.h"
22 #include "device/base/device_monitor_win.h" 22 #include "device/base/device_monitor_win.h"
23 #endif // OS_WIN 23 #endif // OS_WIN
24 24
25 struct libusb_device; 25 struct libusb_device;
26 struct libusb_context; 26 struct libusb_context;
27 27
28 namespace base { 28 namespace base {
29 class SequencedTaskRunner; 29 class SequencedTaskRunner;
30 class SingleThreadTaskRunner;
31 } 30 }
32 31
33 namespace device { 32 namespace device {
34 33
35 typedef struct libusb_device* PlatformUsbDevice; 34 typedef struct libusb_device* PlatformUsbDevice;
36 typedef struct libusb_context* PlatformUsbContext; 35 typedef struct libusb_context* PlatformUsbContext;
37 36
38 class UsbServiceImpl : 37 class UsbServiceImpl :
39 #if defined(OS_WIN) 38 #if defined(OS_WIN)
40 public DeviceMonitorWin::Observer, 39 public DeviceMonitorWin::Observer,
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 #if defined(OS_WIN) 113 #if defined(OS_WIN)
115 ScopedObserver<DeviceMonitorWin, DeviceMonitorWin::Observer> device_observer_; 114 ScopedObserver<DeviceMonitorWin, DeviceMonitorWin::Observer> device_observer_;
116 #endif // OS_WIN 115 #endif // OS_WIN
117 116
118 base::WeakPtrFactory<UsbServiceImpl> weak_factory_; 117 base::WeakPtrFactory<UsbServiceImpl> weak_factory_;
119 118
120 DISALLOW_COPY_AND_ASSIGN(UsbServiceImpl); 119 DISALLOW_COPY_AND_ASSIGN(UsbServiceImpl);
121 }; 120 };
122 121
123 } // namespace device 122 } // namespace device
OLDNEW
« no previous file with comments | « device/usb/usb_device_linux.h ('k') | device/usb/usb_service_linux.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698