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

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

Issue 492133002: Renderer changes for wiring up shared memory with declarative injection (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add browsertests Created 6 years, 4 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
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 "extensions/browser/extension_system.h" 8 #include "extensions/browser/extension_system.h"
9 #include "extensions/common/one_shot_event.h" 9 #include "extensions/common/one_shot_event.h"
10 10
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 virtual InstallVerifier* install_verifier() OVERRIDE; 79 virtual InstallVerifier* install_verifier() OVERRIDE;
80 virtual QuotaService* quota_service() OVERRIDE; 80 virtual QuotaService* quota_service() OVERRIDE;
81 virtual const OneShotEvent& ready() const OVERRIDE; 81 virtual const OneShotEvent& ready() const OVERRIDE;
82 virtual ContentVerifier* content_verifier() OVERRIDE; 82 virtual ContentVerifier* content_verifier() OVERRIDE;
83 virtual scoped_ptr<ExtensionSet> GetDependentExtensions( 83 virtual scoped_ptr<ExtensionSet> GetDependentExtensions(
84 const Extension* extension) OVERRIDE; 84 const Extension* extension) OVERRIDE;
85 virtual DeclarativeUserScriptMaster* 85 virtual DeclarativeUserScriptMaster*
86 GetDeclarativeUserScriptMasterByExtension( 86 GetDeclarativeUserScriptMasterByExtension(
87 const ExtensionId& extension_id) OVERRIDE; 87 const ExtensionId& extension_id) OVERRIDE;
88 88
89 // Note that you probably want to use base::RunLoop().RunUntilIdle() right 89 void SetReady() {
90 // after this to run all the accumulated tasks. 90 LOG(INFO) << "SetReady()";
Devlin 2014/08/25 22:31:06 diediedie
Mark Dittmer 2014/08/26 17:53:58 Done.
91 void SetReady() { ready_.Signal(); } 91 ready_.Signal();
92 }
92 93
93 // Factory method for tests to use with SetTestingProfile. 94 // Factory method for tests to use with SetTestingProfile.
94 static KeyedService* Build(content::BrowserContext* profile); 95 static KeyedService* Build(content::BrowserContext* profile);
95 96
96 protected: 97 protected:
97 Profile* profile_; 98 Profile* profile_;
98 99
99 private: 100 private:
100 scoped_ptr<StateStore> state_store_; 101 scoped_ptr<StateStore> state_store_;
101 // A pointer to the TestingValueStore owned by |state_store_|. 102 // A pointer to the TestingValueStore owned by |state_store_|.
102 TestingValueStore* value_store_; 103 TestingValueStore* value_store_;
103 scoped_ptr<Blacklist> blacklist_; 104 scoped_ptr<Blacklist> blacklist_;
104 scoped_ptr<StandardManagementPolicyProvider> 105 scoped_ptr<StandardManagementPolicyProvider>
105 standard_management_policy_provider_; 106 standard_management_policy_provider_;
106 scoped_ptr<ManagementPolicy> management_policy_; 107 scoped_ptr<ManagementPolicy> management_policy_;
107 scoped_ptr<RuntimeData> runtime_data_; 108 scoped_ptr<RuntimeData> runtime_data_;
108 scoped_ptr<ExtensionService> extension_service_; 109 scoped_ptr<ExtensionService> extension_service_;
109 scoped_ptr<ProcessManager> process_manager_; 110 scoped_ptr<ProcessManager> process_manager_;
110 scoped_refptr<InfoMap> info_map_; 111 scoped_refptr<InfoMap> info_map_;
111 scoped_ptr<EventRouter> event_router_; 112 scoped_ptr<EventRouter> event_router_;
112 scoped_ptr<ErrorConsole> error_console_; 113 scoped_ptr<ErrorConsole> error_console_;
113 scoped_ptr<InstallVerifier> install_verifier_; 114 scoped_ptr<InstallVerifier> install_verifier_;
114 scoped_ptr<QuotaService> quota_service_; 115 scoped_ptr<QuotaService> quota_service_;
115 OneShotEvent ready_; 116 OneShotEvent ready_;
116 }; 117 };
117 118
118 } // namespace extensions 119 } // namespace extensions
119 120
120 #endif // CHROME_BROWSER_EXTENSIONS_TEST_EXTENSION_SYSTEM_H_ 121 #endif // CHROME_BROWSER_EXTENSIONS_TEST_EXTENSION_SYSTEM_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698