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

Side by Side Diff: extensions/shell/browser/shell_extension_system.h

Issue 1908953003: Convert //extensions/{common,shell} from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase? 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 EXTENSIONS_SHELL_BROWSER_SHELL_EXTENSION_SYSTEM_H_ 5 #ifndef EXTENSIONS_SHELL_BROWSER_SHELL_EXTENSION_SYSTEM_H_
6 #define EXTENSIONS_SHELL_BROWSER_SHELL_EXTENSION_SYSTEM_H_ 6 #define EXTENSIONS_SHELL_BROWSER_SHELL_EXTENSION_SYSTEM_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 QuotaService* quota_service() override; 59 QuotaService* quota_service() override;
60 AppSorting* app_sorting() override; 60 AppSorting* app_sorting() override;
61 void RegisterExtensionWithRequestContexts( 61 void RegisterExtensionWithRequestContexts(
62 const Extension* extension, 62 const Extension* extension,
63 const base::Closure& callback) override; 63 const base::Closure& callback) override;
64 void UnregisterExtensionWithRequestContexts( 64 void UnregisterExtensionWithRequestContexts(
65 const std::string& extension_id, 65 const std::string& extension_id,
66 const UnloadedExtensionInfo::Reason reason) override; 66 const UnloadedExtensionInfo::Reason reason) override;
67 const OneShotEvent& ready() const override; 67 const OneShotEvent& ready() const override;
68 ContentVerifier* content_verifier() override; 68 ContentVerifier* content_verifier() override;
69 scoped_ptr<ExtensionSet> GetDependentExtensions( 69 std::unique_ptr<ExtensionSet> GetDependentExtensions(
70 const Extension* extension) override; 70 const Extension* extension) override;
71 void InstallUpdate(const std::string& extension_id, 71 void InstallUpdate(const std::string& extension_id,
72 const base::FilePath& temp_dir) override; 72 const base::FilePath& temp_dir) override;
73 73
74 private: 74 private:
75 void OnExtensionRegisteredWithRequestContexts( 75 void OnExtensionRegisteredWithRequestContexts(
76 scoped_refptr<Extension> extension); 76 scoped_refptr<Extension> extension);
77 content::BrowserContext* browser_context_; // Not owned. 77 content::BrowserContext* browser_context_; // Not owned.
78 78
79 // Data to be accessed on the IO thread. Must outlive process_manager_. 79 // Data to be accessed on the IO thread. Must outlive process_manager_.
80 scoped_refptr<InfoMap> info_map_; 80 scoped_refptr<InfoMap> info_map_;
81 81
82 scoped_ptr<ServiceWorkerManager> service_worker_manager_; 82 std::unique_ptr<ServiceWorkerManager> service_worker_manager_;
83 scoped_ptr<RuntimeData> runtime_data_; 83 std::unique_ptr<RuntimeData> runtime_data_;
84 scoped_ptr<QuotaService> quota_service_; 84 std::unique_ptr<QuotaService> quota_service_;
85 scoped_ptr<AppSorting> app_sorting_; 85 std::unique_ptr<AppSorting> app_sorting_;
86 86
87 scoped_refptr<ValueStoreFactory> store_factory_; 87 scoped_refptr<ValueStoreFactory> store_factory_;
88 88
89 // Signaled when the extension system has completed its startup tasks. 89 // Signaled when the extension system has completed its startup tasks.
90 OneShotEvent ready_; 90 OneShotEvent ready_;
91 91
92 base::WeakPtrFactory<ShellExtensionSystem> weak_factory_; 92 base::WeakPtrFactory<ShellExtensionSystem> weak_factory_;
93 93
94 DISALLOW_COPY_AND_ASSIGN(ShellExtensionSystem); 94 DISALLOW_COPY_AND_ASSIGN(ShellExtensionSystem);
95 }; 95 };
96 96
97 } // namespace extensions 97 } // namespace extensions
98 98
99 #endif // EXTENSIONS_SHELL_BROWSER_SHELL_EXTENSION_SYSTEM_H_ 99 #endif // EXTENSIONS_SHELL_BROWSER_SHELL_EXTENSION_SYSTEM_H_
OLDNEW
« no previous file with comments | « extensions/shell/browser/shell_device_client.h ('k') | extensions/shell/browser/shell_extension_system.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698