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

Side by Side Diff: device/hid/hid_service_win.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/hid/hid_service_mac.h ('k') | device/udev_linux/udev_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 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_HID_HID_SERVICE_WIN_H_ 5 #ifndef DEVICE_HID_HID_SERVICE_WIN_H_
6 #define DEVICE_HID_HID_SERVICE_WIN_H_ 6 #define DEVICE_HID_HID_SERVICE_WIN_H_
7 7
8 #include <windows.h> 8 #include <windows.h>
9 9
10 // Must be after windows.h. 10 // Must be after windows.h.
11 #include <hidclass.h> 11 #include <hidclass.h>
12 12
13 extern "C" { 13 extern "C" {
14 #include <hidsdi.h> 14 #include <hidsdi.h>
15 #include <hidpi.h> 15 #include <hidpi.h>
16 } 16 }
17 17
18 #include "base/macros.h" 18 #include "base/macros.h"
19 #include "base/memory/weak_ptr.h" 19 #include "base/memory/weak_ptr.h"
20 #include "base/scoped_observer.h" 20 #include "base/scoped_observer.h"
21 #include "base/win/scoped_handle.h" 21 #include "base/win/scoped_handle.h"
22 #include "device/base/device_monitor_win.h" 22 #include "device/base/device_monitor_win.h"
23 #include "device/hid/hid_device_info.h" 23 #include "device/hid/hid_device_info.h"
24 #include "device/hid/hid_service.h" 24 #include "device/hid/hid_service.h"
25 25
26 namespace base {
27 namespace win {
28 class MessageWindow;
29 }
30 }
31
32 namespace device { 26 namespace device {
33 27
34 class HidServiceWin : public HidService, public DeviceMonitorWin::Observer { 28 class HidServiceWin : public HidService, public DeviceMonitorWin::Observer {
35 public: 29 public:
36 HidServiceWin(scoped_refptr<base::SingleThreadTaskRunner> file_task_runner); 30 HidServiceWin(scoped_refptr<base::SingleThreadTaskRunner> file_task_runner);
37 ~HidServiceWin() override; 31 ~HidServiceWin() override;
38 32
39 void Connect(const HidDeviceId& device_id, 33 void Connect(const HidDeviceId& device_id,
40 const ConnectCallback& callback) override; 34 const ConnectCallback& callback) override;
41 35
(...skipping 27 matching lines...) Expand all
69 scoped_refptr<base::SingleThreadTaskRunner> file_task_runner_; 63 scoped_refptr<base::SingleThreadTaskRunner> file_task_runner_;
70 ScopedObserver<DeviceMonitorWin, DeviceMonitorWin::Observer> device_observer_; 64 ScopedObserver<DeviceMonitorWin, DeviceMonitorWin::Observer> device_observer_;
71 base::WeakPtrFactory<HidServiceWin> weak_factory_; 65 base::WeakPtrFactory<HidServiceWin> weak_factory_;
72 66
73 DISALLOW_COPY_AND_ASSIGN(HidServiceWin); 67 DISALLOW_COPY_AND_ASSIGN(HidServiceWin);
74 }; 68 };
75 69
76 } // namespace device 70 } // namespace device
77 71
78 #endif // DEVICE_HID_HID_SERVICE_WIN_H_ 72 #endif // DEVICE_HID_HID_SERVICE_WIN_H_
OLDNEW
« no previous file with comments | « device/hid/hid_service_mac.h ('k') | device/udev_linux/udev_linux.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698