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

Side by Side Diff: components/storage_monitor/storage_monitor_win.h

Issue 1884743002: Convert a few components from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: lint 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 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 COMPONENTS_STORAGE_MONITOR_STORAGE_MONITOR_WIN_H_ 5 #ifndef COMPONENTS_STORAGE_MONITOR_STORAGE_MONITOR_WIN_H_
6 #define COMPONENTS_STORAGE_MONITOR_STORAGE_MONITOR_WIN_H_ 6 #define COMPONENTS_STORAGE_MONITOR_STORAGE_MONITOR_WIN_H_
7 7
8 #include <memory>
9
8 #include "base/macros.h" 10 #include "base/macros.h"
9 #include "base/memory/ref_counted.h" 11 #include "base/memory/ref_counted.h"
10 #include "base/memory/scoped_ptr.h"
11 #include "components/storage_monitor/storage_monitor.h" 12 #include "components/storage_monitor/storage_monitor.h"
12 13
13 namespace base { 14 namespace base {
14 class FilePath; 15 class FilePath;
15 } 16 }
16 17
17 namespace storage_monitor { 18 namespace storage_monitor {
18 19
19 class PortableDeviceWatcherWin; 20 class PortableDeviceWatcherWin;
20 class TestStorageMonitorWin; 21 class TestStorageMonitorWin;
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 ATOM window_class_; 71 ATOM window_class_;
71 72
72 // The handle of the module that contains the window procedure of |window_|. 73 // The handle of the module that contains the window procedure of |window_|.
73 HMODULE instance_; 74 HMODULE instance_;
74 HWND window_; 75 HWND window_;
75 76
76 // The handle of a registration for shell notifications. 77 // The handle of a registration for shell notifications.
77 ULONG shell_change_notify_id_; 78 ULONG shell_change_notify_id_;
78 79
79 // The volume mount point watcher, used to manage the mounted devices. 80 // The volume mount point watcher, used to manage the mounted devices.
80 scoped_ptr<VolumeMountWatcherWin> volume_mount_watcher_; 81 std::unique_ptr<VolumeMountWatcherWin> volume_mount_watcher_;
81 82
82 // The portable device watcher, used to manage media transfer protocol 83 // The portable device watcher, used to manage media transfer protocol
83 // devices. 84 // devices.
84 scoped_ptr<PortableDeviceWatcherWin> portable_device_watcher_; 85 std::unique_ptr<PortableDeviceWatcherWin> portable_device_watcher_;
85 86
86 DISALLOW_COPY_AND_ASSIGN(StorageMonitorWin); 87 DISALLOW_COPY_AND_ASSIGN(StorageMonitorWin);
87 }; 88 };
88 89
89 } // namespace storage_monitor 90 } // namespace storage_monitor
90 91
91 #endif // COMPONENTS_STORAGE_MONITOR_STORAGE_MONITOR_WIN_H_ 92 #endif // COMPONENTS_STORAGE_MONITOR_STORAGE_MONITOR_WIN_H_
OLDNEW
« no previous file with comments | « components/storage_monitor/storage_monitor_mac_unittest.mm ('k') | components/storage_monitor/storage_monitor_win_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698