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/usb/mojo/device_manager_impl.h" | 5 #include "device/usb/mojo/device_manager_impl.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 |
| 9 #include <memory> |
8 #include <utility> | 10 #include <utility> |
9 | 11 |
10 #include "base/bind.h" | 12 #include "base/bind.h" |
11 #include "base/location.h" | 13 #include "base/location.h" |
12 #include "base/memory/scoped_ptr.h" | |
13 #include "base/stl_util.h" | 14 #include "base/stl_util.h" |
14 #include "device/core/device_client.h" | 15 #include "device/core/device_client.h" |
15 #include "device/usb/mojo/device_impl.h" | 16 #include "device/usb/mojo/device_impl.h" |
16 #include "device/usb/mojo/permission_provider.h" | 17 #include "device/usb/mojo/permission_provider.h" |
17 #include "device/usb/mojo/type_converters.h" | 18 #include "device/usb/mojo/type_converters.h" |
18 #include "device/usb/public/interfaces/device.mojom.h" | 19 #include "device/usb/public/interfaces/device.mojom.h" |
19 #include "device/usb/usb_device.h" | 20 #include "device/usb/usb_device.h" |
20 #include "device/usb/usb_device_filter.h" | 21 #include "device/usb/usb_device_filter.h" |
21 #include "device/usb/usb_service.h" | 22 #include "device/usb/usb_service.h" |
22 #include "mojo/public/cpp/bindings/array.h" | 23 #include "mojo/public/cpp/bindings/array.h" |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
140 devices_added_.clear(); | 141 devices_added_.clear(); |
141 notification->devices_removed.Swap(&devices_removed_); | 142 notification->devices_removed.Swap(&devices_removed_); |
142 | 143 |
143 device_change_callbacks_.front().Run(std::move(notification)); | 144 device_change_callbacks_.front().Run(std::move(notification)); |
144 device_change_callbacks_.pop(); | 145 device_change_callbacks_.pop(); |
145 } | 146 } |
146 } | 147 } |
147 | 148 |
148 } // namespace usb | 149 } // namespace usb |
149 } // namespace device | 150 } // namespace device |
OLD | NEW |