| 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_TEST_EXTENSION_SYSTEM_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_TEST_EXTENSION_SYSTEM_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_TEST_EXTENSION_SYSTEM_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_TEST_EXTENSION_SYSTEM_H_ |
| 7 | 7 |
| 8 #include "chrome/browser/extensions/extension_system.h" | 8 #include "chrome/browser/extensions/extension_system.h" |
| 9 | 9 |
| 10 class CommandLine; | 10 class CommandLine; |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 virtual void InitForRegularProfile(bool extensions_enabled) OVERRIDE {} | 51 virtual void InitForRegularProfile(bool extensions_enabled) OVERRIDE {} |
| 52 virtual void InitForOTRProfile() OVERRIDE {} | 52 virtual void InitForOTRProfile() OVERRIDE {} |
| 53 void SetExtensionService(ExtensionService* service); | 53 void SetExtensionService(ExtensionService* service); |
| 54 virtual ExtensionService* extension_service() OVERRIDE; | 54 virtual ExtensionService* extension_service() OVERRIDE; |
| 55 virtual ManagementPolicy* management_policy() OVERRIDE; | 55 virtual ManagementPolicy* management_policy() OVERRIDE; |
| 56 virtual UserScriptMaster* user_script_master() OVERRIDE; | 56 virtual UserScriptMaster* user_script_master() OVERRIDE; |
| 57 virtual ExtensionProcessManager* process_manager() OVERRIDE; | 57 virtual ExtensionProcessManager* process_manager() OVERRIDE; |
| 58 virtual StateStore* state_store() OVERRIDE; | 58 virtual StateStore* state_store() OVERRIDE; |
| 59 virtual StateStore* rules_store() OVERRIDE; | 59 virtual StateStore* rules_store() OVERRIDE; |
| 60 virtual ExtensionPrefs* extension_prefs() OVERRIDE; | 60 virtual ExtensionPrefs* extension_prefs() OVERRIDE; |
| 61 virtual ShellWindowGeometryCache* shell_window_geometry_cache() OVERRIDE; | |
| 62 virtual ExtensionInfoMap* info_map() OVERRIDE; | 61 virtual ExtensionInfoMap* info_map() OVERRIDE; |
| 63 virtual LazyBackgroundTaskQueue* lazy_background_task_queue() OVERRIDE; | 62 virtual LazyBackgroundTaskQueue* lazy_background_task_queue() OVERRIDE; |
| 64 virtual EventRouter* event_router() OVERRIDE; | 63 virtual EventRouter* event_router() OVERRIDE; |
| 65 virtual RulesRegistryService* rules_registry_service() OVERRIDE; | 64 virtual RulesRegistryService* rules_registry_service() OVERRIDE; |
| 66 virtual ApiResourceManager<SerialConnection>* serial_connection_manager() | 65 virtual ApiResourceManager<SerialConnection>* serial_connection_manager() |
| 67 OVERRIDE; | 66 OVERRIDE; |
| 68 virtual ApiResourceManager<Socket>* socket_manager() OVERRIDE; | 67 virtual ApiResourceManager<Socket>* socket_manager() OVERRIDE; |
| 69 virtual ApiResourceManager<UsbDeviceResource>* usb_device_resource_manager() | 68 virtual ApiResourceManager<UsbDeviceResource>* usb_device_resource_manager() |
| 70 OVERRIDE; | 69 OVERRIDE; |
| 71 virtual ExtensionWarningService* warning_service() OVERRIDE; | 70 virtual ExtensionWarningService* warning_service() OVERRIDE; |
| 72 virtual Blacklist* blacklist() OVERRIDE; | 71 virtual Blacklist* blacklist() OVERRIDE; |
| 73 | 72 |
| 74 // Factory method for tests to use with SetTestingProfile. | 73 // Factory method for tests to use with SetTestingProfile. |
| 75 static ProfileKeyedService* Build(content::BrowserContext* profile); | 74 static ProfileKeyedService* Build(content::BrowserContext* profile); |
| 76 | 75 |
| 77 protected: | 76 protected: |
| 78 Profile* profile_; | 77 Profile* profile_; |
| 79 | 78 |
| 80 private: | 79 private: |
| 81 // The Extension Preferences. Only created if CreateExtensionService is | 80 // The Extension Preferences. Only created if CreateExtensionService is |
| 82 // invoked. | 81 // invoked. |
| 83 scoped_ptr<ExtensionPrefs> extension_prefs_; | 82 scoped_ptr<ExtensionPrefs> extension_prefs_; |
| 84 scoped_ptr<StateStore> state_store_; | 83 scoped_ptr<StateStore> state_store_; |
| 85 scoped_ptr<ShellWindowGeometryCache> shell_window_geometry_cache_; | |
| 86 scoped_ptr<Blacklist> blacklist_; | 84 scoped_ptr<Blacklist> blacklist_; |
| 87 scoped_ptr<StandardManagementPolicyProvider> | 85 scoped_ptr<StandardManagementPolicyProvider> |
| 88 standard_management_policy_provider_; | 86 standard_management_policy_provider_; |
| 89 scoped_ptr<ManagementPolicy> management_policy_; | 87 scoped_ptr<ManagementPolicy> management_policy_; |
| 90 scoped_ptr<ExtensionService> extension_service_; | 88 scoped_ptr<ExtensionService> extension_service_; |
| 91 scoped_ptr<ExtensionProcessManager> extension_process_manager_; | 89 scoped_ptr<ExtensionProcessManager> extension_process_manager_; |
| 92 scoped_refptr<ExtensionInfoMap> info_map_; | 90 scoped_refptr<ExtensionInfoMap> info_map_; |
| 93 scoped_ptr<ApiResourceManager<Socket> > socket_manager_; | 91 scoped_ptr<ApiResourceManager<Socket> > socket_manager_; |
| 94 }; | 92 }; |
| 95 | 93 |
| 96 } // namespace extensions | 94 } // namespace extensions |
| 97 | 95 |
| 98 #endif // CHROME_BROWSER_EXTENSIONS_TEST_EXTENSION_SYSTEM_H_ | 96 #endif // CHROME_BROWSER_EXTENSIONS_TEST_EXTENSION_SYSTEM_H_ |
| OLD | NEW |