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

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

Issue 1168383002: Implement sidebar support for extension action popups Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 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 "base/memory/scoped_vector.h" 8 #include "base/memory/scoped_vector.h"
9 #include "extensions/browser/extension_system.h" 9 #include "extensions/browser/extension_system.h"
10 #include "extensions/common/one_shot_event.h" 10 #include "extensions/common/one_shot_event.h"
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 void CreateSocketManager(); 54 void CreateSocketManager();
55 55
56 void InitForRegularProfile(bool extensions_enabled) override {} 56 void InitForRegularProfile(bool extensions_enabled) override {}
57 void SetExtensionService(ExtensionService* service); 57 void SetExtensionService(ExtensionService* service);
58 ExtensionService* extension_service() override; 58 ExtensionService* extension_service() override;
59 RuntimeData* runtime_data() override; 59 RuntimeData* runtime_data() override;
60 ManagementPolicy* management_policy() override; 60 ManagementPolicy* management_policy() override;
61 SharedUserScriptMaster* shared_user_script_master() override; 61 SharedUserScriptMaster* shared_user_script_master() override;
62 StateStore* state_store() override; 62 StateStore* state_store() override;
63 StateStore* rules_store() override; 63 StateStore* rules_store() override;
64 SidebarManager* sidebar_manager() override;
64 TestingValueStore* value_store() { return value_store_; } 65 TestingValueStore* value_store() { return value_store_; }
65 InfoMap* info_map() override; 66 InfoMap* info_map() override;
66 QuotaService* quota_service() override; 67 QuotaService* quota_service() override;
67 const OneShotEvent& ready() const override; 68 const OneShotEvent& ready() const override;
68 ContentVerifier* content_verifier() override; 69 ContentVerifier* content_verifier() override;
69 scoped_ptr<ExtensionSet> GetDependentExtensions( 70 scoped_ptr<ExtensionSet> GetDependentExtensions(
70 const Extension* extension) override; 71 const Extension* extension) override;
71 72
72 // Note that you probably want to use base::RunLoop().RunUntilIdle() right 73 // Note that you probably want to use base::RunLoop().RunUntilIdle() right
73 // after this to run all the accumulated tasks. 74 // after this to run all the accumulated tasks.
74 void SetReady() { ready_.Signal(); } 75 void SetReady() { ready_.Signal(); }
75 76
76 // Factory method for tests to use with SetTestingProfile. 77 // Factory method for tests to use with SetTestingProfile.
77 static KeyedService* Build(content::BrowserContext* profile); 78 static KeyedService* Build(content::BrowserContext* profile);
78 79
79 protected: 80 protected:
80 Profile* profile_; 81 Profile* profile_;
81 82
82 private: 83 private:
83 scoped_ptr<StateStore> state_store_; 84 scoped_ptr<StateStore> state_store_;
85 scoped_ptr<SidebarManager> sidebar_manager_;
84 // A pointer to the TestingValueStore owned by |state_store_|. 86 // A pointer to the TestingValueStore owned by |state_store_|.
85 TestingValueStore* value_store_; 87 TestingValueStore* value_store_;
86 scoped_ptr<ManagementPolicy> management_policy_; 88 scoped_ptr<ManagementPolicy> management_policy_;
87 scoped_ptr<RuntimeData> runtime_data_; 89 scoped_ptr<RuntimeData> runtime_data_;
88 scoped_ptr<ExtensionService> extension_service_; 90 scoped_ptr<ExtensionService> extension_service_;
89 scoped_refptr<InfoMap> info_map_; 91 scoped_refptr<InfoMap> info_map_;
90 scoped_ptr<QuotaService> quota_service_; 92 scoped_ptr<QuotaService> quota_service_;
91 OneShotEvent ready_; 93 OneShotEvent ready_;
92 }; 94 };
93 95
94 } // namespace extensions 96 } // namespace extensions
95 97
96 #endif // CHROME_BROWSER_EXTENSIONS_TEST_EXTENSION_SYSTEM_H_ 98 #endif // CHROME_BROWSER_EXTENSIONS_TEST_EXTENSION_SYSTEM_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698