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 #include "device/hid/hid_service.h" | 5 #include "device/hid/hid_service.h" |
6 | 6 |
7 #include "base/at_exit.h" | 7 #include "base/at_exit.h" |
8 #include "base/bind.h" | 8 #include "base/bind.h" |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/message_loop/message_loop.h" | 10 #include "base/message_loop/message_loop.h" |
11 #include "base/stl_util.h" | 11 #include "base/stl_util.h" |
| 12 #include "build/build_config.h" |
12 #include "components/device_event_log/device_event_log.h" | 13 #include "components/device_event_log/device_event_log.h" |
13 | 14 |
14 #if defined(OS_LINUX) && defined(USE_UDEV) | 15 #if defined(OS_LINUX) && defined(USE_UDEV) |
15 #include "device/hid/hid_service_linux.h" | 16 #include "device/hid/hid_service_linux.h" |
16 #elif defined(OS_MACOSX) | 17 #elif defined(OS_MACOSX) |
17 #include "device/hid/hid_service_mac.h" | 18 #include "device/hid/hid_service_mac.h" |
18 #elif defined(OS_WIN) | 19 #elif defined(OS_WIN) |
19 #include "device/hid/hid_service_win.h" | 20 #include "device/hid/hid_service_win.h" |
20 #endif | 21 #endif |
21 | 22 |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 } | 134 } |
134 | 135 |
135 for (const GetDevicesCallback& callback : pending_enumerations_) { | 136 for (const GetDevicesCallback& callback : pending_enumerations_) { |
136 callback.Run(devices); | 137 callback.Run(devices); |
137 } | 138 } |
138 pending_enumerations_.clear(); | 139 pending_enumerations_.clear(); |
139 } | 140 } |
140 } | 141 } |
141 | 142 |
142 } // namespace device | 143 } // namespace device |
OLD | NEW |