Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(507)

Side by Side Diff: device/usb/mojo/device_manager_impl.cc

Issue 1874313002: Convert device to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « device/usb/mojo/device_manager_impl.h ('k') | device/usb/mojo/device_manager_impl_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « device/usb/mojo/device_manager_impl.h ('k') | device/usb/mojo/device_manager_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698