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