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

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

Issue 14636012: Move ShellWindowGeometryCache into apps (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: PKS dependency Created 7 years, 7 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_SYSTEM_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_SYSTEM_H_
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_SYSTEM_H_ 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_SYSTEM_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 19 matching lines...) Expand all
30 class Extension; 30 class Extension;
31 class ExtensionPrefs; 31 class ExtensionPrefs;
32 class ExtensionSystemSharedFactory; 32 class ExtensionSystemSharedFactory;
33 class ExtensionWarningBadgeService; 33 class ExtensionWarningBadgeService;
34 class ExtensionWarningService; 34 class ExtensionWarningService;
35 class LazyBackgroundTaskQueue; 35 class LazyBackgroundTaskQueue;
36 class ManagementPolicy; 36 class ManagementPolicy;
37 class MessageService; 37 class MessageService;
38 class NavigationObserver; 38 class NavigationObserver;
39 class RulesRegistryService; 39 class RulesRegistryService;
40 class ShellWindowGeometryCache;
41 class StandardManagementPolicyProvider; 40 class StandardManagementPolicyProvider;
42 class StateStore; 41 class StateStore;
43 class UserScriptMaster; 42 class UserScriptMaster;
44 43
45 // The ExtensionSystem manages the creation and destruction of services 44 // The ExtensionSystem manages the creation and destruction of services
46 // related to extensions. Most objects are shared between normal 45 // related to extensions. Most objects are shared between normal
47 // and incognito Profiles, except as called out in comments. 46 // and incognito Profiles, except as called out in comments.
48 // This interface supports using TestExtensionSystem for TestingProfiles 47 // This interface supports using TestExtensionSystem for TestingProfiles
49 // that don't want all of the extensions baggage in their tests. 48 // that don't want all of the extensions baggage in their tests.
50 class ExtensionSystem : public ProfileKeyedService { 49 class ExtensionSystem : public ProfileKeyedService {
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 81
83 // The StateStore is created at startup. 82 // The StateStore is created at startup.
84 virtual StateStore* state_store() = 0; 83 virtual StateStore* state_store() = 0;
85 84
86 // The rules store is created at startup. 85 // The rules store is created at startup.
87 virtual StateStore* rules_store() = 0; 86 virtual StateStore* rules_store() = 0;
88 87
89 // The extension prefs. 88 // The extension prefs.
90 virtual ExtensionPrefs* extension_prefs() = 0; 89 virtual ExtensionPrefs* extension_prefs() = 0;
91 90
92 // The ShellWindowGeometryCache is created at startup.
93 virtual ShellWindowGeometryCache* shell_window_geometry_cache() = 0;
94
95 // Returns the IO-thread-accessible extension data. 91 // Returns the IO-thread-accessible extension data.
96 virtual ExtensionInfoMap* info_map() = 0; 92 virtual ExtensionInfoMap* info_map() = 0;
97 93
98 // The LazyBackgroundTaskQueue is created at startup. 94 // The LazyBackgroundTaskQueue is created at startup.
99 virtual LazyBackgroundTaskQueue* lazy_background_task_queue() = 0; 95 virtual LazyBackgroundTaskQueue* lazy_background_task_queue() = 0;
100 96
101 // The EventRouter is created at startup. 97 // The EventRouter is created at startup.
102 virtual EventRouter* event_router() = 0; 98 virtual EventRouter* event_router() = 0;
103 99
104 // The RulesRegistryService is created at startup. 100 // The RulesRegistryService is created at startup.
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 virtual void InitForRegularProfile(bool extensions_enabled) OVERRIDE; 150 virtual void InitForRegularProfile(bool extensions_enabled) OVERRIDE;
155 virtual void InitForOTRProfile() OVERRIDE; 151 virtual void InitForOTRProfile() OVERRIDE;
156 152
157 virtual ExtensionService* extension_service() OVERRIDE; // shared 153 virtual ExtensionService* extension_service() OVERRIDE; // shared
158 virtual ManagementPolicy* management_policy() OVERRIDE; // shared 154 virtual ManagementPolicy* management_policy() OVERRIDE; // shared
159 virtual UserScriptMaster* user_script_master() OVERRIDE; // shared 155 virtual UserScriptMaster* user_script_master() OVERRIDE; // shared
160 virtual ExtensionProcessManager* process_manager() OVERRIDE; 156 virtual ExtensionProcessManager* process_manager() OVERRIDE;
161 virtual StateStore* state_store() OVERRIDE; // shared 157 virtual StateStore* state_store() OVERRIDE; // shared
162 virtual StateStore* rules_store() OVERRIDE; // shared 158 virtual StateStore* rules_store() OVERRIDE; // shared
163 virtual ExtensionPrefs* extension_prefs() OVERRIDE; // shared 159 virtual ExtensionPrefs* extension_prefs() OVERRIDE; // shared
164 virtual ShellWindowGeometryCache* shell_window_geometry_cache()
165 OVERRIDE; // shared
166 virtual LazyBackgroundTaskQueue* lazy_background_task_queue() 160 virtual LazyBackgroundTaskQueue* lazy_background_task_queue()
167 OVERRIDE; // shared 161 OVERRIDE; // shared
168 virtual ExtensionInfoMap* info_map() OVERRIDE; // shared 162 virtual ExtensionInfoMap* info_map() OVERRIDE; // shared
169 virtual EventRouter* event_router() OVERRIDE; // shared 163 virtual EventRouter* event_router() OVERRIDE; // shared
170 virtual RulesRegistryService* rules_registry_service() 164 virtual RulesRegistryService* rules_registry_service()
171 OVERRIDE; // shared 165 OVERRIDE; // shared
172 virtual ApiResourceManager<SerialConnection>* serial_connection_manager() 166 virtual ApiResourceManager<SerialConnection>* serial_connection_manager()
173 OVERRIDE; 167 OVERRIDE;
174 virtual ApiResourceManager<Socket>* socket_manager() OVERRIDE; 168 virtual ApiResourceManager<Socket>* socket_manager() OVERRIDE;
175 virtual ApiResourceManager<UsbDeviceResource>* usb_device_resource_manager() 169 virtual ApiResourceManager<UsbDeviceResource>* usb_device_resource_manager()
(...skipping 23 matching lines...) Expand all
199 // This must not be called until all the providers have been created. 193 // This must not be called until all the providers have been created.
200 void RegisterManagementPolicyProviders(); 194 void RegisterManagementPolicyProviders();
201 void Init(bool extensions_enabled); 195 void Init(bool extensions_enabled);
202 196
203 // ProfileKeyedService implementation. 197 // ProfileKeyedService implementation.
204 virtual void Shutdown() OVERRIDE; 198 virtual void Shutdown() OVERRIDE;
205 199
206 StateStore* state_store(); 200 StateStore* state_store();
207 StateStore* rules_store(); 201 StateStore* rules_store();
208 ExtensionPrefs* extension_prefs(); 202 ExtensionPrefs* extension_prefs();
209 ShellWindowGeometryCache* shell_window_geometry_cache();
210 ExtensionService* extension_service(); 203 ExtensionService* extension_service();
211 ManagementPolicy* management_policy(); 204 ManagementPolicy* management_policy();
212 UserScriptMaster* user_script_master(); 205 UserScriptMaster* user_script_master();
213 Blacklist* blacklist(); 206 Blacklist* blacklist();
214 ExtensionInfoMap* info_map(); 207 ExtensionInfoMap* info_map();
215 LazyBackgroundTaskQueue* lazy_background_task_queue(); 208 LazyBackgroundTaskQueue* lazy_background_task_queue();
216 EventRouter* event_router(); 209 EventRouter* event_router();
217 ExtensionWarningService* warning_service(); 210 ExtensionWarningService* warning_service();
218 211
219 private: 212 private:
220 Profile* profile_; 213 Profile* profile_;
221 214
222 // The services that are shared between normal and incognito profiles. 215 // The services that are shared between normal and incognito profiles.
223 216
224 scoped_ptr<StateStore> state_store_; 217 scoped_ptr<StateStore> state_store_;
225 scoped_ptr<StateStore> rules_store_; 218 scoped_ptr<StateStore> rules_store_;
226 scoped_ptr<ExtensionPrefs> extension_prefs_; 219 scoped_ptr<ExtensionPrefs> extension_prefs_;
227 // ShellWindowGeometryCache depends on ExtensionPrefs.
228 scoped_ptr<ShellWindowGeometryCache> shell_window_geometry_cache_;
229 // LazyBackgroundTaskQueue is a dependency of 220 // LazyBackgroundTaskQueue is a dependency of
230 // MessageService and EventRouter. 221 // MessageService and EventRouter.
231 scoped_ptr<LazyBackgroundTaskQueue> lazy_background_task_queue_; 222 scoped_ptr<LazyBackgroundTaskQueue> lazy_background_task_queue_;
232 scoped_ptr<EventRouter> event_router_; 223 scoped_ptr<EventRouter> event_router_;
233 scoped_ptr<NavigationObserver> navigation_observer_; 224 scoped_ptr<NavigationObserver> navigation_observer_;
234 scoped_refptr<UserScriptMaster> user_script_master_; 225 scoped_refptr<UserScriptMaster> user_script_master_;
235 // Blacklist depends on ExtensionPrefs. 226 // Blacklist depends on ExtensionPrefs.
236 scoped_ptr<Blacklist> blacklist_; 227 scoped_ptr<Blacklist> blacklist_;
237 // StandardManagementPolicyProvider depends on ExtensionPrefs and Blacklist. 228 // StandardManagementPolicyProvider depends on ExtensionPrefs and Blacklist.
238 scoped_ptr<StandardManagementPolicyProvider> 229 scoped_ptr<StandardManagementPolicyProvider>
(...skipping 21 matching lines...) Expand all
260 scoped_ptr<ApiResourceManager< 251 scoped_ptr<ApiResourceManager<
261 UsbDeviceResource> > usb_device_resource_manager_; 252 UsbDeviceResource> > usb_device_resource_manager_;
262 scoped_ptr<RulesRegistryService> rules_registry_service_; 253 scoped_ptr<RulesRegistryService> rules_registry_service_;
263 254
264 DISALLOW_COPY_AND_ASSIGN(ExtensionSystemImpl); 255 DISALLOW_COPY_AND_ASSIGN(ExtensionSystemImpl);
265 }; 256 };
266 257
267 } // namespace extensions 258 } // namespace extensions
268 259
269 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SYSTEM_H_ 260 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SYSTEM_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698