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/usb/mojo/device_manager_impl.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 #include <utility> | 8 #include <utility> |
9 | 9 |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
11 #include "base/location.h" | 11 #include "base/location.h" |
12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
13 #include "base/stl_util.h" | 13 #include "base/stl_util.h" |
14 #include "device/core/device_client.h" | 14 #include "device/core/device_client.h" |
15 #include "device/devices_app/usb/device_impl.h" | 15 #include "device/usb/mojo/device_impl.h" |
16 #include "device/devices_app/usb/public/interfaces/device.mojom.h" | 16 #include "device/usb/mojo/type_converters.h" |
17 #include "device/devices_app/usb/type_converters.h" | 17 #include "device/usb/public/interfaces/device.mojom.h" |
18 #include "device/usb/usb_device.h" | 18 #include "device/usb/usb_device.h" |
19 #include "device/usb/usb_device_filter.h" | 19 #include "device/usb/usb_device_filter.h" |
20 #include "device/usb/usb_service.h" | 20 #include "device/usb/usb_service.h" |
21 #include "mojo/public/cpp/bindings/array.h" | 21 #include "mojo/public/cpp/bindings/array.h" |
22 #include "mojo/public/cpp/bindings/interface_request.h" | 22 #include "mojo/public/cpp/bindings/interface_request.h" |
23 | 23 |
24 namespace device { | 24 namespace device { |
25 namespace usb { | 25 namespace usb { |
26 | 26 |
27 namespace { | 27 namespace { |
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
219 callback.Run(std::move(notification)); | 219 callback.Run(std::move(notification)); |
220 device_change_callbacks_.pop(); | 220 device_change_callbacks_.pop(); |
221 } | 221 } |
222 | 222 |
223 if (devices_added_.size() > 0 || !devices_removed_.empty()) | 223 if (devices_added_.size() > 0 || !devices_removed_.empty()) |
224 MaybeRunDeviceChangesCallback(); | 224 MaybeRunDeviceChangesCallback(); |
225 } | 225 } |
226 | 226 |
227 } // namespace usb | 227 } // namespace usb |
228 } // namespace device | 228 } // namespace device |
OLD | NEW |