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

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

Issue 14208019: Change MessageService to use ProfileKeyedAPI. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 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 (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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 99
100 // The ShellWindowGeometryCache is created at startup. 100 // The ShellWindowGeometryCache is created at startup.
101 virtual ShellWindowGeometryCache* shell_window_geometry_cache() = 0; 101 virtual ShellWindowGeometryCache* shell_window_geometry_cache() = 0;
102 102
103 // Returns the IO-thread-accessible extension data. 103 // Returns the IO-thread-accessible extension data.
104 virtual ExtensionInfoMap* info_map() = 0; 104 virtual ExtensionInfoMap* info_map() = 0;
105 105
106 // The LazyBackgroundTaskQueue is created at startup. 106 // The LazyBackgroundTaskQueue is created at startup.
107 virtual LazyBackgroundTaskQueue* lazy_background_task_queue() = 0; 107 virtual LazyBackgroundTaskQueue* lazy_background_task_queue() = 0;
108 108
109 // The MessageService is created at startup.
110 virtual MessageService* message_service() = 0;
111
112 // The EventRouter is created at startup. 109 // The EventRouter is created at startup.
113 virtual EventRouter* event_router() = 0; 110 virtual EventRouter* event_router() = 0;
114 111
115 // The RulesRegistryService is created at startup. 112 // The RulesRegistryService is created at startup.
116 virtual RulesRegistryService* rules_registry_service() = 0; 113 virtual RulesRegistryService* rules_registry_service() = 0;
117 114
118 // The SerialConnection ResourceManager is created at startup. 115 // The SerialConnection ResourceManager is created at startup.
119 virtual ApiResourceManager<SerialConnection>* 116 virtual ApiResourceManager<SerialConnection>*
120 serial_connection_manager() = 0; 117 serial_connection_manager() = 0;
121 118
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 virtual AlarmManager* alarm_manager() OVERRIDE; 169 virtual AlarmManager* alarm_manager() OVERRIDE;
173 virtual LocationManager* location_manager() OVERRIDE; 170 virtual LocationManager* location_manager() OVERRIDE;
174 virtual StateStore* state_store() OVERRIDE; // shared 171 virtual StateStore* state_store() OVERRIDE; // shared
175 virtual StateStore* rules_store() OVERRIDE; // shared 172 virtual StateStore* rules_store() OVERRIDE; // shared
176 virtual ExtensionPrefs* extension_prefs() OVERRIDE; // shared 173 virtual ExtensionPrefs* extension_prefs() OVERRIDE; // shared
177 virtual ShellWindowGeometryCache* shell_window_geometry_cache() 174 virtual ShellWindowGeometryCache* shell_window_geometry_cache()
178 OVERRIDE; // shared 175 OVERRIDE; // shared
179 virtual LazyBackgroundTaskQueue* lazy_background_task_queue() 176 virtual LazyBackgroundTaskQueue* lazy_background_task_queue()
180 OVERRIDE; // shared 177 OVERRIDE; // shared
181 virtual ExtensionInfoMap* info_map() OVERRIDE; // shared 178 virtual ExtensionInfoMap* info_map() OVERRIDE; // shared
182 virtual MessageService* message_service() OVERRIDE; // shared
183 virtual EventRouter* event_router() OVERRIDE; // shared 179 virtual EventRouter* event_router() OVERRIDE; // shared
184 virtual RulesRegistryService* rules_registry_service() 180 virtual RulesRegistryService* rules_registry_service()
185 OVERRIDE; // shared 181 OVERRIDE; // shared
186 virtual ApiResourceManager<SerialConnection>* serial_connection_manager() 182 virtual ApiResourceManager<SerialConnection>* serial_connection_manager()
187 OVERRIDE; 183 OVERRIDE;
188 virtual ApiResourceManager<Socket>* socket_manager() OVERRIDE; 184 virtual ApiResourceManager<Socket>* socket_manager() OVERRIDE;
189 virtual ApiResourceManager<UsbDeviceResource>* usb_device_resource_manager() 185 virtual ApiResourceManager<UsbDeviceResource>* usb_device_resource_manager()
190 OVERRIDE; 186 OVERRIDE;
191 virtual ExtensionWarningService* warning_service() OVERRIDE; 187 virtual ExtensionWarningService* warning_service() OVERRIDE;
192 virtual Blacklist* blacklist() OVERRIDE; // shared 188 virtual Blacklist* blacklist() OVERRIDE; // shared
(...skipping 28 matching lines...) Expand all
221 StateStore* state_store(); 217 StateStore* state_store();
222 StateStore* rules_store(); 218 StateStore* rules_store();
223 ExtensionPrefs* extension_prefs(); 219 ExtensionPrefs* extension_prefs();
224 ShellWindowGeometryCache* shell_window_geometry_cache(); 220 ShellWindowGeometryCache* shell_window_geometry_cache();
225 ExtensionService* extension_service(); 221 ExtensionService* extension_service();
226 ManagementPolicy* management_policy(); 222 ManagementPolicy* management_policy();
227 UserScriptMaster* user_script_master(); 223 UserScriptMaster* user_script_master();
228 Blacklist* blacklist(); 224 Blacklist* blacklist();
229 ExtensionInfoMap* info_map(); 225 ExtensionInfoMap* info_map();
230 LazyBackgroundTaskQueue* lazy_background_task_queue(); 226 LazyBackgroundTaskQueue* lazy_background_task_queue();
231 MessageService* message_service();
232 EventRouter* event_router(); 227 EventRouter* event_router();
233 ExtensionWarningService* warning_service(); 228 ExtensionWarningService* warning_service();
234 229
235 private: 230 private:
236 Profile* profile_; 231 Profile* profile_;
237 232
238 // The services that are shared between normal and incognito profiles. 233 // The services that are shared between normal and incognito profiles.
239 234
240 base::DefaultClock clock_; 235 base::DefaultClock clock_;
241 scoped_ptr<StateStore> state_store_; 236 scoped_ptr<StateStore> state_store_;
242 scoped_ptr<StateStore> rules_store_; 237 scoped_ptr<StateStore> rules_store_;
243 scoped_ptr<ExtensionPrefs> extension_prefs_; 238 scoped_ptr<ExtensionPrefs> extension_prefs_;
244 // ShellWindowGeometryCache depends on ExtensionPrefs. 239 // ShellWindowGeometryCache depends on ExtensionPrefs.
245 scoped_ptr<ShellWindowGeometryCache> shell_window_geometry_cache_; 240 scoped_ptr<ShellWindowGeometryCache> shell_window_geometry_cache_;
246 // LazyBackgroundTaskQueue is a dependency of 241 // LazyBackgroundTaskQueue is a dependency of
247 // MessageService and EventRouter. 242 // MessageService and EventRouter.
248 scoped_ptr<LazyBackgroundTaskQueue> lazy_background_task_queue_; 243 scoped_ptr<LazyBackgroundTaskQueue> lazy_background_task_queue_;
249 scoped_ptr<EventRouter> event_router_; 244 scoped_ptr<EventRouter> event_router_;
250 scoped_ptr<MessageService> message_service_;
251 scoped_ptr<NavigationObserver> navigation_observer_; 245 scoped_ptr<NavigationObserver> navigation_observer_;
252 scoped_refptr<UserScriptMaster> user_script_master_; 246 scoped_refptr<UserScriptMaster> user_script_master_;
253 // Blacklist depends on ExtensionPrefs. 247 // Blacklist depends on ExtensionPrefs.
254 scoped_ptr<Blacklist> blacklist_; 248 scoped_ptr<Blacklist> blacklist_;
255 // StandardManagementPolicyProvider depends on ExtensionPrefs and Blacklist. 249 // StandardManagementPolicyProvider depends on ExtensionPrefs and Blacklist.
256 scoped_ptr<StandardManagementPolicyProvider> 250 scoped_ptr<StandardManagementPolicyProvider>
257 standard_management_policy_provider_; 251 standard_management_policy_provider_;
258 // ExtensionService depends on ExtensionPrefs, StateStore, and Blacklist. 252 // ExtensionService depends on ExtensionPrefs, StateStore, and Blacklist.
259 scoped_ptr<ExtensionService> extension_service_; 253 scoped_ptr<ExtensionService> extension_service_;
260 scoped_ptr<ManagementPolicy> management_policy_; 254 scoped_ptr<ManagementPolicy> management_policy_;
(...skipping 19 matching lines...) Expand all
280 scoped_ptr<ApiResourceManager< 274 scoped_ptr<ApiResourceManager<
281 UsbDeviceResource> > usb_device_resource_manager_; 275 UsbDeviceResource> > usb_device_resource_manager_;
282 scoped_ptr<RulesRegistryService> rules_registry_service_; 276 scoped_ptr<RulesRegistryService> rules_registry_service_;
283 277
284 DISALLOW_COPY_AND_ASSIGN(ExtensionSystemImpl); 278 DISALLOW_COPY_AND_ASSIGN(ExtensionSystemImpl);
285 }; 279 };
286 280
287 } // namespace extensions 281 } // namespace extensions
288 282
289 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SYSTEM_H_ 283 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SYSTEM_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698