| OLD | NEW |
| 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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 | 95 |
| 96 // The ShellWindowGeometryCache is created at startup. | 96 // The ShellWindowGeometryCache is created at startup. |
| 97 virtual ShellWindowGeometryCache* shell_window_geometry_cache() = 0; | 97 virtual ShellWindowGeometryCache* shell_window_geometry_cache() = 0; |
| 98 | 98 |
| 99 // Returns the IO-thread-accessible extension data. | 99 // Returns the IO-thread-accessible extension data. |
| 100 virtual ExtensionInfoMap* info_map() = 0; | 100 virtual ExtensionInfoMap* info_map() = 0; |
| 101 | 101 |
| 102 // The LazyBackgroundTaskQueue is created at startup. | 102 // The LazyBackgroundTaskQueue is created at startup. |
| 103 virtual LazyBackgroundTaskQueue* lazy_background_task_queue() = 0; | 103 virtual LazyBackgroundTaskQueue* lazy_background_task_queue() = 0; |
| 104 | 104 |
| 105 // The MessageService is created at startup. | |
| 106 virtual MessageService* message_service() = 0; | |
| 107 | |
| 108 // The EventRouter is created at startup. | 105 // The EventRouter is created at startup. |
| 109 virtual EventRouter* event_router() = 0; | 106 virtual EventRouter* event_router() = 0; |
| 110 | 107 |
| 111 // The RulesRegistryService is created at startup. | 108 // The RulesRegistryService is created at startup. |
| 112 virtual RulesRegistryService* rules_registry_service() = 0; | 109 virtual RulesRegistryService* rules_registry_service() = 0; |
| 113 | 110 |
| 114 // The SerialConnection ResourceManager is created at startup. | 111 // The SerialConnection ResourceManager is created at startup. |
| 115 virtual ApiResourceManager<SerialConnection>* | 112 virtual ApiResourceManager<SerialConnection>* |
| 116 serial_connection_manager() = 0; | 113 serial_connection_manager() = 0; |
| 117 | 114 |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 167 virtual ExtensionProcessManager* process_manager() OVERRIDE; | 164 virtual ExtensionProcessManager* process_manager() OVERRIDE; |
| 168 virtual LocationManager* location_manager() OVERRIDE; | 165 virtual LocationManager* location_manager() OVERRIDE; |
| 169 virtual StateStore* state_store() OVERRIDE; // shared | 166 virtual StateStore* state_store() OVERRIDE; // shared |
| 170 virtual StateStore* rules_store() OVERRIDE; // shared | 167 virtual StateStore* rules_store() OVERRIDE; // shared |
| 171 virtual ExtensionPrefs* extension_prefs() OVERRIDE; // shared | 168 virtual ExtensionPrefs* extension_prefs() OVERRIDE; // shared |
| 172 virtual ShellWindowGeometryCache* shell_window_geometry_cache() | 169 virtual ShellWindowGeometryCache* shell_window_geometry_cache() |
| 173 OVERRIDE; // shared | 170 OVERRIDE; // shared |
| 174 virtual LazyBackgroundTaskQueue* lazy_background_task_queue() | 171 virtual LazyBackgroundTaskQueue* lazy_background_task_queue() |
| 175 OVERRIDE; // shared | 172 OVERRIDE; // shared |
| 176 virtual ExtensionInfoMap* info_map() OVERRIDE; // shared | 173 virtual ExtensionInfoMap* info_map() OVERRIDE; // shared |
| 177 virtual MessageService* message_service() OVERRIDE; // shared | |
| 178 virtual EventRouter* event_router() OVERRIDE; // shared | 174 virtual EventRouter* event_router() OVERRIDE; // shared |
| 179 virtual RulesRegistryService* rules_registry_service() | 175 virtual RulesRegistryService* rules_registry_service() |
| 180 OVERRIDE; // shared | 176 OVERRIDE; // shared |
| 181 virtual ApiResourceManager<SerialConnection>* serial_connection_manager() | 177 virtual ApiResourceManager<SerialConnection>* serial_connection_manager() |
| 182 OVERRIDE; | 178 OVERRIDE; |
| 183 virtual ApiResourceManager<Socket>* socket_manager() OVERRIDE; | 179 virtual ApiResourceManager<Socket>* socket_manager() OVERRIDE; |
| 184 virtual ApiResourceManager<UsbDeviceResource>* usb_device_resource_manager() | 180 virtual ApiResourceManager<UsbDeviceResource>* usb_device_resource_manager() |
| 185 OVERRIDE; | 181 OVERRIDE; |
| 186 virtual ExtensionWarningService* warning_service() OVERRIDE; | 182 virtual ExtensionWarningService* warning_service() OVERRIDE; |
| 187 virtual Blacklist* blacklist() OVERRIDE; // shared | 183 virtual Blacklist* blacklist() OVERRIDE; // shared |
| (...skipping 27 matching lines...) Expand all Loading... |
| 215 StateStore* state_store(); | 211 StateStore* state_store(); |
| 216 StateStore* rules_store(); | 212 StateStore* rules_store(); |
| 217 ExtensionPrefs* extension_prefs(); | 213 ExtensionPrefs* extension_prefs(); |
| 218 ShellWindowGeometryCache* shell_window_geometry_cache(); | 214 ShellWindowGeometryCache* shell_window_geometry_cache(); |
| 219 ExtensionService* extension_service(); | 215 ExtensionService* extension_service(); |
| 220 ManagementPolicy* management_policy(); | 216 ManagementPolicy* management_policy(); |
| 221 UserScriptMaster* user_script_master(); | 217 UserScriptMaster* user_script_master(); |
| 222 Blacklist* blacklist(); | 218 Blacklist* blacklist(); |
| 223 ExtensionInfoMap* info_map(); | 219 ExtensionInfoMap* info_map(); |
| 224 LazyBackgroundTaskQueue* lazy_background_task_queue(); | 220 LazyBackgroundTaskQueue* lazy_background_task_queue(); |
| 225 MessageService* message_service(); | |
| 226 EventRouter* event_router(); | 221 EventRouter* event_router(); |
| 227 ExtensionWarningService* warning_service(); | 222 ExtensionWarningService* warning_service(); |
| 228 | 223 |
| 229 private: | 224 private: |
| 230 Profile* profile_; | 225 Profile* profile_; |
| 231 | 226 |
| 232 // The services that are shared between normal and incognito profiles. | 227 // The services that are shared between normal and incognito profiles. |
| 233 | 228 |
| 234 scoped_ptr<StateStore> state_store_; | 229 scoped_ptr<StateStore> state_store_; |
| 235 scoped_ptr<StateStore> rules_store_; | 230 scoped_ptr<StateStore> rules_store_; |
| 236 scoped_ptr<ExtensionPrefs> extension_prefs_; | 231 scoped_ptr<ExtensionPrefs> extension_prefs_; |
| 237 // ShellWindowGeometryCache depends on ExtensionPrefs. | 232 // ShellWindowGeometryCache depends on ExtensionPrefs. |
| 238 scoped_ptr<ShellWindowGeometryCache> shell_window_geometry_cache_; | 233 scoped_ptr<ShellWindowGeometryCache> shell_window_geometry_cache_; |
| 239 // LazyBackgroundTaskQueue is a dependency of | 234 // LazyBackgroundTaskQueue is a dependency of |
| 240 // MessageService and EventRouter. | 235 // MessageService and EventRouter. |
| 241 scoped_ptr<LazyBackgroundTaskQueue> lazy_background_task_queue_; | 236 scoped_ptr<LazyBackgroundTaskQueue> lazy_background_task_queue_; |
| 242 scoped_ptr<EventRouter> event_router_; | 237 scoped_ptr<EventRouter> event_router_; |
| 243 scoped_ptr<MessageService> message_service_; | |
| 244 scoped_ptr<NavigationObserver> navigation_observer_; | 238 scoped_ptr<NavigationObserver> navigation_observer_; |
| 245 scoped_refptr<UserScriptMaster> user_script_master_; | 239 scoped_refptr<UserScriptMaster> user_script_master_; |
| 246 // Blacklist depends on ExtensionPrefs. | 240 // Blacklist depends on ExtensionPrefs. |
| 247 scoped_ptr<Blacklist> blacklist_; | 241 scoped_ptr<Blacklist> blacklist_; |
| 248 // StandardManagementPolicyProvider depends on ExtensionPrefs and Blacklist. | 242 // StandardManagementPolicyProvider depends on ExtensionPrefs and Blacklist. |
| 249 scoped_ptr<StandardManagementPolicyProvider> | 243 scoped_ptr<StandardManagementPolicyProvider> |
| 250 standard_management_policy_provider_; | 244 standard_management_policy_provider_; |
| 251 // ExtensionService depends on ExtensionPrefs, StateStore, and Blacklist. | 245 // ExtensionService depends on ExtensionPrefs, StateStore, and Blacklist. |
| 252 scoped_ptr<ExtensionService> extension_service_; | 246 scoped_ptr<ExtensionService> extension_service_; |
| 253 scoped_ptr<ManagementPolicy> management_policy_; | 247 scoped_ptr<ManagementPolicy> management_policy_; |
| (...skipping 18 matching lines...) Expand all Loading... |
| 272 scoped_ptr<ApiResourceManager< | 266 scoped_ptr<ApiResourceManager< |
| 273 UsbDeviceResource> > usb_device_resource_manager_; | 267 UsbDeviceResource> > usb_device_resource_manager_; |
| 274 scoped_ptr<RulesRegistryService> rules_registry_service_; | 268 scoped_ptr<RulesRegistryService> rules_registry_service_; |
| 275 | 269 |
| 276 DISALLOW_COPY_AND_ASSIGN(ExtensionSystemImpl); | 270 DISALLOW_COPY_AND_ASSIGN(ExtensionSystemImpl); |
| 277 }; | 271 }; |
| 278 | 272 |
| 279 } // namespace extensions | 273 } // namespace extensions |
| 280 | 274 |
| 281 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SYSTEM_H_ | 275 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SYSTEM_H_ |
| OLD | NEW |