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_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 #include <hidclass.h> | 9 #include <hidclass.h> |
10 | 10 |
11 extern "C" { | 11 extern "C" { |
12 #include <hidsdi.h> | 12 #include <hidsdi.h> |
13 #include <hidpi.h> | 13 #include <hidpi.h> |
14 } | 14 } |
15 | 15 |
| 16 #include "base/macros.h" |
16 #include "base/memory/scoped_ptr.h" | 17 #include "base/memory/scoped_ptr.h" |
17 #include "base/memory/weak_ptr.h" | 18 #include "base/memory/weak_ptr.h" |
18 #include "base/scoped_observer.h" | 19 #include "base/scoped_observer.h" |
19 #include "base/win/scoped_handle.h" | 20 #include "base/win/scoped_handle.h" |
20 #include "device/core/device_monitor_win.h" | 21 #include "device/core/device_monitor_win.h" |
21 #include "device/hid/hid_device_info.h" | 22 #include "device/hid/hid_device_info.h" |
22 #include "device/hid/hid_service.h" | 23 #include "device/hid/hid_service.h" |
23 | 24 |
24 namespace base { | 25 namespace base { |
25 namespace win { | 26 namespace win { |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 scoped_refptr<base::SingleThreadTaskRunner> file_task_runner_; | 68 scoped_refptr<base::SingleThreadTaskRunner> file_task_runner_; |
68 ScopedObserver<DeviceMonitorWin, DeviceMonitorWin::Observer> device_observer_; | 69 ScopedObserver<DeviceMonitorWin, DeviceMonitorWin::Observer> device_observer_; |
69 base::WeakPtrFactory<HidServiceWin> weak_factory_; | 70 base::WeakPtrFactory<HidServiceWin> weak_factory_; |
70 | 71 |
71 DISALLOW_COPY_AND_ASSIGN(HidServiceWin); | 72 DISALLOW_COPY_AND_ASSIGN(HidServiceWin); |
72 }; | 73 }; |
73 | 74 |
74 } // namespace device | 75 } // namespace device |
75 | 76 |
76 #endif // DEVICE_HID_HID_SERVICE_WIN_H_ | 77 #endif // DEVICE_HID_HID_SERVICE_WIN_H_ |
OLD | NEW |