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