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/core/device_monitor_win.h" | 5 #include "device/core/device_monitor_win.h" |
6 | 6 |
| 7 #include <windows.h> |
7 #include <dbt.h> | 8 #include <dbt.h> |
8 #include <map> | 9 #include <map> |
9 #include <windows.h> | |
10 | 10 |
11 #include "base/at_exit.h" | 11 #include "base/at_exit.h" |
12 #include "base/bind.h" | 12 #include "base/bind.h" |
| 13 #include "base/macros.h" |
13 #include "base/strings/string_util.h" | 14 #include "base/strings/string_util.h" |
14 #include "base/strings/sys_string_conversions.h" | 15 #include "base/strings/sys_string_conversions.h" |
15 #include "base/win/message_window.h" | 16 #include "base/win/message_window.h" |
16 | 17 |
17 namespace device { | 18 namespace device { |
18 | 19 |
19 class DeviceMonitorMessageWindow; | 20 class DeviceMonitorMessageWindow; |
20 | 21 |
21 namespace { | 22 namespace { |
22 | 23 |
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
194 OnDeviceAdded(class_guid, device_path)); | 195 OnDeviceAdded(class_guid, device_path)); |
195 } | 196 } |
196 | 197 |
197 void DeviceMonitorWin::NotifyDeviceRemoved(const GUID& class_guid, | 198 void DeviceMonitorWin::NotifyDeviceRemoved(const GUID& class_guid, |
198 const std::string& device_path) { | 199 const std::string& device_path) { |
199 FOR_EACH_OBSERVER(Observer, observer_list_, | 200 FOR_EACH_OBSERVER(Observer, observer_list_, |
200 OnDeviceRemoved(class_guid, device_path)); | 201 OnDeviceRemoved(class_guid, device_path)); |
201 } | 202 } |
202 | 203 |
203 } // namespace device | 204 } // namespace device |
OLD | NEW |