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

Side by Side Diff: device/usb/usb_device_impl.h

Issue 1544323002: Convert Pass()→std::move() in //device (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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/usb_device_handle_impl.cc ('k') | device/usb/usb_service_impl.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 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 #ifndef DEVICE_USB_USB_DEVICE_IMPL_H_ 5 #ifndef DEVICE_USB_USB_DEVICE_IMPL_H_
6 #define DEVICE_USB_USB_DEVICE_IMPL_H_ 6 #define DEVICE_USB_USB_DEVICE_IMPL_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9 #include <utility>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/callback.h" 12 #include "base/callback.h"
13 #include "base/macros.h" 13 #include "base/macros.h"
14 #include "base/threading/thread_checker.h" 14 #include "base/threading/thread_checker.h"
15 #include "build/build_config.h" 15 #include "build/build_config.h"
16 #include "device/usb/usb_descriptors.h" 16 #include "device/usb/usb_descriptors.h"
17 #include "device/usb/usb_device.h" 17 #include "device/usb/usb_device.h"
18 #include "device/usb/webusb_descriptors.h" 18 #include "device/usb/webusb_descriptors.h"
19 19
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 manufacturer_string_ = value; 54 manufacturer_string_ = value;
55 } 55 }
56 void set_product_string(const base::string16& value) { 56 void set_product_string(const base::string16& value) {
57 product_string_ = value; 57 product_string_ = value;
58 } 58 }
59 void set_serial_number(const base::string16& value) { 59 void set_serial_number(const base::string16& value) {
60 serial_number_ = value; 60 serial_number_ = value;
61 } 61 }
62 void set_device_path(const std::string& value) { device_path_ = value; } 62 void set_device_path(const std::string& value) { device_path_ = value; }
63 void set_webusb_allowed_origins(scoped_ptr<WebUsbDescriptorSet> descriptors) { 63 void set_webusb_allowed_origins(scoped_ptr<WebUsbDescriptorSet> descriptors) {
64 webusb_allowed_origins_ = descriptors.Pass(); 64 webusb_allowed_origins_ = std::move(descriptors);
65 } 65 }
66 void set_webusb_landing_page(const GURL& url) { webusb_landing_page_ = url; } 66 void set_webusb_landing_page(const GURL& url) { webusb_landing_page_ = url; }
67 67
68 PlatformUsbDevice platform_device() const { return platform_device_; } 68 PlatformUsbDevice platform_device() const { return platform_device_; }
69 69
70 protected: 70 protected:
71 friend class UsbServiceImpl; 71 friend class UsbServiceImpl;
72 friend class UsbDeviceHandleImpl; 72 friend class UsbDeviceHandleImpl;
73 73
74 // Called by UsbServiceImpl only; 74 // Called by UsbServiceImpl only;
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 123
124 scoped_refptr<base::SequencedTaskRunner> task_runner_; 124 scoped_refptr<base::SequencedTaskRunner> task_runner_;
125 scoped_refptr<base::SequencedTaskRunner> blocking_task_runner_; 125 scoped_refptr<base::SequencedTaskRunner> blocking_task_runner_;
126 126
127 DISALLOW_COPY_AND_ASSIGN(UsbDeviceImpl); 127 DISALLOW_COPY_AND_ASSIGN(UsbDeviceImpl);
128 }; 128 };
129 129
130 } // namespace device 130 } // namespace device
131 131
132 #endif // DEVICE_USB_USB_DEVICE_IMPL_H_ 132 #endif // DEVICE_USB_USB_DEVICE_IMPL_H_
OLDNEW
« no previous file with comments | « device/usb/usb_device_handle_impl.cc ('k') | device/usb/usb_service_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698