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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 virtual LazyBackgroundTaskQueue* lazy_background_task_queue() OVERRIDE; | 64 virtual LazyBackgroundTaskQueue* lazy_background_task_queue() OVERRIDE; |
65 virtual EventRouter* event_router() OVERRIDE; | 65 virtual EventRouter* event_router() OVERRIDE; |
66 virtual RulesRegistryService* rules_registry_service() OVERRIDE; | 66 virtual RulesRegistryService* rules_registry_service() OVERRIDE; |
67 virtual ApiResourceManager<SerialConnection>* serial_connection_manager() | 67 virtual ApiResourceManager<SerialConnection>* serial_connection_manager() |
68 OVERRIDE; | 68 OVERRIDE; |
69 virtual ApiResourceManager<Socket>* socket_manager() OVERRIDE; | 69 virtual ApiResourceManager<Socket>* socket_manager() OVERRIDE; |
70 virtual ApiResourceManager<UsbDeviceResource>* usb_device_resource_manager() | 70 virtual ApiResourceManager<UsbDeviceResource>* usb_device_resource_manager() |
71 OVERRIDE; | 71 OVERRIDE; |
72 virtual ExtensionWarningService* warning_service() OVERRIDE; | 72 virtual ExtensionWarningService* warning_service() OVERRIDE; |
73 virtual Blacklist* blacklist() OVERRIDE; | 73 virtual Blacklist* blacklist() OVERRIDE; |
| 74 virtual const OneShotEvent& ready() const OVERRIDE; |
| 75 // Calls ready().Signal(). |
| 76 void MakeReady(); |
74 | 77 |
75 // Factory method for tests to use with SetTestingProfile. | 78 // Factory method for tests to use with SetTestingProfile. |
76 static ProfileKeyedService* Build(content::BrowserContext* profile); | 79 static ProfileKeyedService* Build(content::BrowserContext* profile); |
77 | 80 |
78 protected: | 81 protected: |
79 Profile* profile_; | 82 Profile* profile_; |
80 | 83 |
81 private: | 84 private: |
| 85 virtual void ExtensionServiceReady() OVERRIDE; |
| 86 |
82 // The Extension Preferences. Only created if CreateExtensionService is | 87 // The Extension Preferences. Only created if CreateExtensionService is |
83 // invoked. | 88 // invoked. |
84 scoped_ptr<ExtensionPrefs> extension_prefs_; | 89 scoped_ptr<ExtensionPrefs> extension_prefs_; |
85 scoped_ptr<StateStore> state_store_; | 90 scoped_ptr<StateStore> state_store_; |
86 scoped_ptr<ShellWindowGeometryCache> shell_window_geometry_cache_; | 91 scoped_ptr<ShellWindowGeometryCache> shell_window_geometry_cache_; |
87 scoped_ptr<Blacklist> blacklist_; | 92 scoped_ptr<Blacklist> blacklist_; |
88 scoped_ptr<StandardManagementPolicyProvider> | 93 scoped_ptr<StandardManagementPolicyProvider> |
89 standard_management_policy_provider_; | 94 standard_management_policy_provider_; |
90 scoped_ptr<ManagementPolicy> management_policy_; | 95 scoped_ptr<ManagementPolicy> management_policy_; |
91 scoped_ptr<ExtensionService> extension_service_; | 96 scoped_ptr<ExtensionService> extension_service_; |
92 scoped_ptr<ExtensionProcessManager> extension_process_manager_; | 97 scoped_ptr<ExtensionProcessManager> extension_process_manager_; |
93 scoped_ptr<LocationManager> location_manager_; | 98 scoped_ptr<LocationManager> location_manager_; |
94 scoped_refptr<ExtensionInfoMap> info_map_; | 99 scoped_refptr<ExtensionInfoMap> info_map_; |
95 scoped_ptr<ApiResourceManager<Socket> > socket_manager_; | 100 scoped_ptr<ApiResourceManager<Socket> > socket_manager_; |
| 101 OneShotEvent ready_; |
96 }; | 102 }; |
97 | 103 |
98 } // namespace extensions | 104 } // namespace extensions |
99 | 105 |
100 #endif // CHROME_BROWSER_EXTENSIONS_TEST_EXTENSION_SYSTEM_H_ | 106 #endif // CHROME_BROWSER_EXTENSIONS_TEST_EXTENSION_SYSTEM_H_ |
OLD | NEW |