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

Side by Side Diff: content/renderer/usb/web_usb_device_impl.h

Issue 1873783003: Convert //content/renderer from scoped_ptr 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
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 #ifndef CONTENT_RENDERER_USB_WEB_USB_DEVICE_IMPL_H_ 5 #ifndef CONTENT_RENDERER_USB_WEB_USB_DEVICE_IMPL_H_
6 #define CONTENT_RENDERER_USB_WEB_USB_DEVICE_IMPL_H_ 6 #define CONTENT_RENDERER_USB_WEB_USB_DEVICE_IMPL_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
11 #include <memory>
12
11 #include "base/macros.h" 13 #include "base/macros.h"
12 #include "base/memory/scoped_ptr.h"
13 #include "base/memory/weak_ptr.h" 14 #include "base/memory/weak_ptr.h"
14 #include "device/usb/public/interfaces/device.mojom.h" 15 #include "device/usb/public/interfaces/device.mojom.h"
15 #include "device/usb/public/interfaces/device_manager.mojom.h" 16 #include "device/usb/public/interfaces/device_manager.mojom.h"
16 #include "mojo/shell/public/interfaces/interface_provider.mojom.h" 17 #include "mojo/shell/public/interfaces/interface_provider.mojom.h"
17 #include "third_party/WebKit/public/platform/modules/webusb/WebUSBDevice.h" 18 #include "third_party/WebKit/public/platform/modules/webusb/WebUSBDevice.h"
18 #include "third_party/WebKit/public/platform/modules/webusb/WebUSBDeviceInfo.h" 19 #include "third_party/WebKit/public/platform/modules/webusb/WebUSBDeviceInfo.h"
19 #include "third_party/WebKit/public/platform/modules/webusb/WebUSBError.h" 20 #include "third_party/WebKit/public/platform/modules/webusb/WebUSBError.h"
20 21
21 namespace mojo { 22 namespace mojo {
22 class Shell; 23 class Shell;
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 blink::WebUSBDeviceInfo device_info_; 77 blink::WebUSBDeviceInfo device_info_;
77 78
78 base::WeakPtrFactory<WebUSBDeviceImpl> weak_factory_; 79 base::WeakPtrFactory<WebUSBDeviceImpl> weak_factory_;
79 80
80 DISALLOW_COPY_AND_ASSIGN(WebUSBDeviceImpl); 81 DISALLOW_COPY_AND_ASSIGN(WebUSBDeviceImpl);
81 }; 82 };
82 83
83 } // namespace content 84 } // namespace content
84 85
85 #endif // CONTENT_RENDERER_USB_WEB_USB_DEVICE_IMPL_H_ 86 #endif // CONTENT_RENDERER_USB_WEB_USB_DEVICE_IMPL_H_
OLDNEW
« no previous file with comments | « content/renderer/usb/web_usb_client_impl.cc ('k') | content/renderer/usb/web_usb_device_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698