| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/devices_app/usb/device_manager_impl.h" | 5 #include "device/devices_app/usb/device_manager_impl.h" |
| 6 | 6 |
| 7 #include <stddef.h> |
| 8 |
| 7 #include "base/bind.h" | 9 #include "base/bind.h" |
| 8 #include "base/location.h" | 10 #include "base/location.h" |
| 9 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
| 10 #include "base/stl_util.h" | 12 #include "base/stl_util.h" |
| 11 #include "device/core/device_client.h" | 13 #include "device/core/device_client.h" |
| 12 #include "device/devices_app/usb/device_impl.h" | 14 #include "device/devices_app/usb/device_impl.h" |
| 13 #include "device/devices_app/usb/public/interfaces/device.mojom.h" | 15 #include "device/devices_app/usb/public/interfaces/device.mojom.h" |
| 14 #include "device/devices_app/usb/type_converters.h" | 16 #include "device/devices_app/usb/type_converters.h" |
| 15 #include "device/usb/usb_device.h" | 17 #include "device/usb/usb_device.h" |
| 16 #include "device/usb/usb_device_filter.h" | 18 #include "device/usb/usb_device_filter.h" |
| (...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 215 callback.Run(notification.Pass()); | 217 callback.Run(notification.Pass()); |
| 216 device_change_callbacks_.pop(); | 218 device_change_callbacks_.pop(); |
| 217 } | 219 } |
| 218 | 220 |
| 219 if (devices_added_.size() > 0 || !devices_removed_.empty()) | 221 if (devices_added_.size() > 0 || !devices_removed_.empty()) |
| 220 MaybeRunDeviceChangesCallback(); | 222 MaybeRunDeviceChangesCallback(); |
| 221 } | 223 } |
| 222 | 224 |
| 223 } // namespace usb | 225 } // namespace usb |
| 224 } // namespace device | 226 } // namespace device |
| OLD | NEW |