Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(50)

Side by Side Diff: chrome/browser/extensions/test_extension_system.h

Issue 14757022: Add a non-blocking "OneShotEvent" class (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: dcronin's comments; ExtensionSystem::ready; and WeakPtr support Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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 AsyncEvent& ready() const OVERRIDE;
75 // Calls ready().MarkHappened().
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:
82 // The Extension Preferences. Only created if CreateExtensionService is 85 // The Extension Preferences. Only created if CreateExtensionService is
83 // invoked. 86 // invoked.
84 scoped_ptr<ExtensionPrefs> extension_prefs_; 87 scoped_ptr<ExtensionPrefs> extension_prefs_;
85 scoped_ptr<StateStore> state_store_; 88 scoped_ptr<StateStore> state_store_;
86 scoped_ptr<ShellWindowGeometryCache> shell_window_geometry_cache_; 89 scoped_ptr<ShellWindowGeometryCache> shell_window_geometry_cache_;
87 scoped_ptr<Blacklist> blacklist_; 90 scoped_ptr<Blacklist> blacklist_;
88 scoped_ptr<StandardManagementPolicyProvider> 91 scoped_ptr<StandardManagementPolicyProvider>
89 standard_management_policy_provider_; 92 standard_management_policy_provider_;
90 scoped_ptr<ManagementPolicy> management_policy_; 93 scoped_ptr<ManagementPolicy> management_policy_;
91 scoped_ptr<ExtensionService> extension_service_; 94 scoped_ptr<ExtensionService> extension_service_;
92 scoped_ptr<ExtensionProcessManager> extension_process_manager_; 95 scoped_ptr<ExtensionProcessManager> extension_process_manager_;
93 scoped_ptr<LocationManager> location_manager_; 96 scoped_ptr<LocationManager> location_manager_;
94 scoped_refptr<ExtensionInfoMap> info_map_; 97 scoped_refptr<ExtensionInfoMap> info_map_;
95 scoped_ptr<ApiResourceManager<Socket> > socket_manager_; 98 scoped_ptr<ApiResourceManager<Socket> > socket_manager_;
99 AsyncEvent ready_;
96 }; 100 };
97 101
98 } // namespace extensions 102 } // namespace extensions
99 103
100 #endif // CHROME_BROWSER_EXTENSIONS_TEST_EXTENSION_SYSTEM_H_ 104 #endif // CHROME_BROWSER_EXTENSIONS_TEST_EXTENSION_SYSTEM_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698