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

Side by Side Diff: chrome/browser/extensions/extension_storage_monitor.h

Issue 1871713002: Convert //chrome/browser/extensions 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 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 CHROME_BROWSER_EXTENSIONS_EXTENSION_STORAGE_MONITOR_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_STORAGE_MONITOR_H_
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_STORAGE_MONITOR_H_ 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_STORAGE_MONITOR_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <set> 10 #include <set>
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 136
137 content::NotificationRegistrar registrar_; 137 content::NotificationRegistrar registrar_;
138 ScopedObserver<extensions::ExtensionRegistry, 138 ScopedObserver<extensions::ExtensionRegistry,
139 extensions::ExtensionRegistryObserver> 139 extensions::ExtensionRegistryObserver>
140 extension_registry_observer_; 140 extension_registry_observer_;
141 141
142 // StorageEventObserver monitors storage for extensions on the IO thread. 142 // StorageEventObserver monitors storage for extensions on the IO thread.
143 scoped_refptr<StorageEventObserver> storage_observer_; 143 scoped_refptr<StorageEventObserver> storage_observer_;
144 144
145 // Modal dialog used to confirm removal of an extension. 145 // Modal dialog used to confirm removal of an extension.
146 scoped_ptr<ExtensionUninstallDialog> uninstall_dialog_; 146 std::unique_ptr<ExtensionUninstallDialog> uninstall_dialog_;
147 147
148 // The ID of the extension that is the subject of the uninstall confirmation 148 // The ID of the extension that is the subject of the uninstall confirmation
149 // dialog. 149 // dialog.
150 std::string uninstall_extension_id_; 150 std::string uninstall_extension_id_;
151 151
152 base::WeakPtrFactory<ExtensionStorageMonitor> weak_ptr_factory_; 152 base::WeakPtrFactory<ExtensionStorageMonitor> weak_ptr_factory_;
153 153
154 friend class StorageEventObserver; 154 friend class StorageEventObserver;
155 friend class ExtensionStorageMonitorTest; 155 friend class ExtensionStorageMonitorTest;
156 156
157 DISALLOW_COPY_AND_ASSIGN(ExtensionStorageMonitor); 157 DISALLOW_COPY_AND_ASSIGN(ExtensionStorageMonitor);
158 }; 158 };
159 159
160 } // namespace extensions 160 } // namespace extensions
161 161
162 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_STORAGE_MONITOR_H_ 162 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_STORAGE_MONITOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698