| 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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 virtual void InitForRegularProfile(bool extensions_enabled, | 57 virtual void InitForRegularProfile(bool extensions_enabled, |
| 58 bool defer_background_creation) OVERRIDE {} | 58 bool defer_background_creation) OVERRIDE {} |
| 59 void SetExtensionService(ExtensionService* service); | 59 void SetExtensionService(ExtensionService* service); |
| 60 virtual ExtensionService* extension_service() OVERRIDE; | 60 virtual ExtensionService* extension_service() OVERRIDE; |
| 61 virtual ManagementPolicy* management_policy() OVERRIDE; | 61 virtual ManagementPolicy* management_policy() OVERRIDE; |
| 62 virtual UserScriptMaster* user_script_master() OVERRIDE; | 62 virtual UserScriptMaster* user_script_master() OVERRIDE; |
| 63 virtual ExtensionProcessManager* process_manager() OVERRIDE; | 63 virtual ExtensionProcessManager* process_manager() OVERRIDE; |
| 64 virtual StateStore* state_store() OVERRIDE; | 64 virtual StateStore* state_store() OVERRIDE; |
| 65 virtual StateStore* rules_store() OVERRIDE; | 65 virtual StateStore* rules_store() OVERRIDE; |
| 66 TestingValueStore* value_store() { return value_store_; } | 66 TestingValueStore* value_store() { return value_store_; } |
| 67 virtual ExtensionInfoMap* info_map() OVERRIDE; | 67 virtual InfoMap* info_map() OVERRIDE; |
| 68 virtual LazyBackgroundTaskQueue* lazy_background_task_queue() OVERRIDE; | 68 virtual LazyBackgroundTaskQueue* lazy_background_task_queue() OVERRIDE; |
| 69 virtual EventRouter* event_router() OVERRIDE; | 69 virtual EventRouter* event_router() OVERRIDE; |
| 70 virtual ExtensionWarningService* warning_service() OVERRIDE; | 70 virtual ExtensionWarningService* warning_service() OVERRIDE; |
| 71 virtual Blacklist* blacklist() OVERRIDE; | 71 virtual Blacklist* blacklist() OVERRIDE; |
| 72 virtual const OneShotEvent& ready() const OVERRIDE; | 72 virtual const OneShotEvent& ready() const OVERRIDE; |
| 73 virtual ErrorConsole* error_console() OVERRIDE; | 73 virtual ErrorConsole* error_console() OVERRIDE; |
| 74 | 74 |
| 75 void SetReady() { | 75 void SetReady() { |
| 76 LOG(INFO) << "SetReady()"; | 76 LOG(INFO) << "SetReady()"; |
| 77 ready_.Signal(); | 77 ready_.Signal(); |
| 78 } | 78 } |
| 79 | 79 |
| 80 // Factory method for tests to use with SetTestingProfile. | 80 // Factory method for tests to use with SetTestingProfile. |
| 81 static BrowserContextKeyedService* Build(content::BrowserContext* profile); | 81 static BrowserContextKeyedService* Build(content::BrowserContext* profile); |
| 82 | 82 |
| 83 protected: | 83 protected: |
| 84 Profile* profile_; | 84 Profile* profile_; |
| 85 | 85 |
| 86 private: | 86 private: |
| 87 scoped_ptr<StateStore> state_store_; | 87 scoped_ptr<StateStore> state_store_; |
| 88 // A pointer to the TestingValueStore owned by |state_store_|. | 88 // A pointer to the TestingValueStore owned by |state_store_|. |
| 89 TestingValueStore* value_store_; | 89 TestingValueStore* value_store_; |
| 90 scoped_ptr<Blacklist> blacklist_; | 90 scoped_ptr<Blacklist> blacklist_; |
| 91 scoped_ptr<StandardManagementPolicyProvider> | 91 scoped_ptr<StandardManagementPolicyProvider> |
| 92 standard_management_policy_provider_; | 92 standard_management_policy_provider_; |
| 93 scoped_ptr<ManagementPolicy> management_policy_; | 93 scoped_ptr<ManagementPolicy> management_policy_; |
| 94 scoped_ptr<ExtensionService> extension_service_; | 94 scoped_ptr<ExtensionService> extension_service_; |
| 95 scoped_ptr<ExtensionProcessManager> extension_process_manager_; | 95 scoped_ptr<ExtensionProcessManager> extension_process_manager_; |
| 96 scoped_refptr<ExtensionInfoMap> info_map_; | 96 scoped_refptr<InfoMap> info_map_; |
| 97 scoped_ptr<ErrorConsole> error_console_; | 97 scoped_ptr<ErrorConsole> error_console_; |
| 98 OneShotEvent ready_; | 98 OneShotEvent ready_; |
| 99 }; | 99 }; |
| 100 | 100 |
| 101 } // namespace extensions | 101 } // namespace extensions |
| 102 | 102 |
| 103 #endif // CHROME_BROWSER_EXTENSIONS_TEST_EXTENSION_SYSTEM_H_ | 103 #endif // CHROME_BROWSER_EXTENSIONS_TEST_EXTENSION_SYSTEM_H_ |
| OLD | NEW |