| 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; |
| 11 | 11 |
| 12 namespace base { | 12 namespace base { |
| 13 class Clock; | |
| 14 class FilePath; | 13 class FilePath; |
| 15 class Time; | 14 class Time; |
| 16 } | 15 } |
| 17 | 16 |
| 18 namespace extensions { | 17 namespace extensions { |
| 19 | 18 |
| 20 // Test ExtensionSystem, for use with TestingProfile. | 19 // Test ExtensionSystem, for use with TestingProfile. |
| 21 class TestExtensionSystem : public ExtensionSystem { | 20 class TestExtensionSystem : public ExtensionSystem { |
| 22 public: | 21 public: |
| 23 explicit TestExtensionSystem(Profile* profile); | 22 explicit TestExtensionSystem(Profile* profile); |
| (...skipping 12 matching lines...) Expand all Loading... |
| 36 // returns it, and creates ExtensionPrefs if it hasn't been created yet. | 35 // returns it, and creates ExtensionPrefs if it hasn't been created yet. |
| 37 ExtensionService* CreateExtensionService( | 36 ExtensionService* CreateExtensionService( |
| 38 const CommandLine* command_line, | 37 const CommandLine* command_line, |
| 39 const base::FilePath& install_directory, | 38 const base::FilePath& install_directory, |
| 40 bool autoupdate_enabled); | 39 bool autoupdate_enabled); |
| 41 | 40 |
| 42 // Creates an ExtensionProcessManager. If not invoked, the | 41 // Creates an ExtensionProcessManager. If not invoked, the |
| 43 // ExtensionProcessManager is NULL. | 42 // ExtensionProcessManager is NULL. |
| 44 void CreateExtensionProcessManager(); | 43 void CreateExtensionProcessManager(); |
| 45 | 44 |
| 46 // Creates an AlarmManager. Will be NULL otherwise. | |
| 47 void CreateAlarmManager(base::Clock* clock); | |
| 48 | |
| 49 void CreateSocketManager(); | 45 void CreateSocketManager(); |
| 50 | 46 |
| 51 virtual void InitForRegularProfile(bool extensions_enabled) OVERRIDE {} | 47 virtual void InitForRegularProfile(bool extensions_enabled) OVERRIDE {} |
| 52 virtual void InitForOTRProfile() OVERRIDE {} | 48 virtual void InitForOTRProfile() OVERRIDE {} |
| 53 void SetExtensionService(ExtensionService* service); | 49 void SetExtensionService(ExtensionService* service); |
| 54 virtual ExtensionService* extension_service() OVERRIDE; | 50 virtual ExtensionService* extension_service() OVERRIDE; |
| 55 virtual ManagementPolicy* management_policy() OVERRIDE; | 51 virtual ManagementPolicy* management_policy() OVERRIDE; |
| 56 virtual UserScriptMaster* user_script_master() OVERRIDE; | 52 virtual UserScriptMaster* user_script_master() OVERRIDE; |
| 57 virtual ExtensionProcessManager* process_manager() OVERRIDE; | 53 virtual ExtensionProcessManager* process_manager() OVERRIDE; |
| 58 virtual AlarmManager* alarm_manager() OVERRIDE; | |
| 59 virtual LocationManager* location_manager() OVERRIDE; | 54 virtual LocationManager* location_manager() OVERRIDE; |
| 60 virtual StateStore* state_store() OVERRIDE; | 55 virtual StateStore* state_store() OVERRIDE; |
| 61 virtual StateStore* rules_store() OVERRIDE; | 56 virtual StateStore* rules_store() OVERRIDE; |
| 62 virtual ExtensionPrefs* extension_prefs() OVERRIDE; | 57 virtual ExtensionPrefs* extension_prefs() OVERRIDE; |
| 63 virtual ShellWindowGeometryCache* shell_window_geometry_cache() OVERRIDE; | 58 virtual ShellWindowGeometryCache* shell_window_geometry_cache() OVERRIDE; |
| 64 virtual ExtensionInfoMap* info_map() OVERRIDE; | 59 virtual ExtensionInfoMap* info_map() OVERRIDE; |
| 65 virtual LazyBackgroundTaskQueue* lazy_background_task_queue() OVERRIDE; | 60 virtual LazyBackgroundTaskQueue* lazy_background_task_queue() OVERRIDE; |
| 66 virtual MessageService* message_service() OVERRIDE; | 61 virtual MessageService* message_service() OVERRIDE; |
| 67 virtual EventRouter* event_router() OVERRIDE; | 62 virtual EventRouter* event_router() OVERRIDE; |
| 68 virtual RulesRegistryService* rules_registry_service() OVERRIDE; | 63 virtual RulesRegistryService* rules_registry_service() OVERRIDE; |
| (...skipping 16 matching lines...) Expand all Loading... |
| 85 // invoked. | 80 // invoked. |
| 86 scoped_ptr<ExtensionPrefs> extension_prefs_; | 81 scoped_ptr<ExtensionPrefs> extension_prefs_; |
| 87 scoped_ptr<StateStore> state_store_; | 82 scoped_ptr<StateStore> state_store_; |
| 88 scoped_ptr<ShellWindowGeometryCache> shell_window_geometry_cache_; | 83 scoped_ptr<ShellWindowGeometryCache> shell_window_geometry_cache_; |
| 89 scoped_ptr<Blacklist> blacklist_; | 84 scoped_ptr<Blacklist> blacklist_; |
| 90 scoped_ptr<StandardManagementPolicyProvider> | 85 scoped_ptr<StandardManagementPolicyProvider> |
| 91 standard_management_policy_provider_; | 86 standard_management_policy_provider_; |
| 92 scoped_ptr<ManagementPolicy> management_policy_; | 87 scoped_ptr<ManagementPolicy> management_policy_; |
| 93 scoped_ptr<ExtensionService> extension_service_; | 88 scoped_ptr<ExtensionService> extension_service_; |
| 94 scoped_ptr<ExtensionProcessManager> extension_process_manager_; | 89 scoped_ptr<ExtensionProcessManager> extension_process_manager_; |
| 95 scoped_ptr<AlarmManager> alarm_manager_; | |
| 96 scoped_refptr<LocationManager> location_manager_; | 90 scoped_refptr<LocationManager> location_manager_; |
| 97 scoped_refptr<ExtensionInfoMap> info_map_; | 91 scoped_refptr<ExtensionInfoMap> info_map_; |
| 98 scoped_ptr<ApiResourceManager<Socket> > socket_manager_; | 92 scoped_ptr<ApiResourceManager<Socket> > socket_manager_; |
| 99 }; | 93 }; |
| 100 | 94 |
| 101 } // namespace extensions | 95 } // namespace extensions |
| 102 | 96 |
| 103 #endif // CHROME_BROWSER_EXTENSIONS_TEST_EXTENSION_SYSTEM_H_ | 97 #endif // CHROME_BROWSER_EXTENSIONS_TEST_EXTENSION_SYSTEM_H_ |
| OLD | NEW |