OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 EXTENSIONS_BROWSER_MOCK_EXTENSION_SYSTEM_H_ | 5 #ifndef EXTENSIONS_BROWSER_MOCK_EXTENSION_SYSTEM_H_ |
6 #define EXTENSIONS_BROWSER_MOCK_EXTENSION_SYSTEM_H_ | 6 #define EXTENSIONS_BROWSER_MOCK_EXTENSION_SYSTEM_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "components/keyed_service/content/browser_context_dependency_manager.h" | 9 #include "components/keyed_service/content/browser_context_dependency_manager.h" |
10 #include "extensions/browser/extension_registry_factory.h" | 10 #include "extensions/browser/extension_registry_factory.h" |
(...skipping 23 matching lines...) Expand all Loading... |
34 ServiceWorkerManager* service_worker_manager() override; | 34 ServiceWorkerManager* service_worker_manager() override; |
35 SharedUserScriptMaster* shared_user_script_master() override; | 35 SharedUserScriptMaster* shared_user_script_master() override; |
36 StateStore* state_store() override; | 36 StateStore* state_store() override; |
37 StateStore* rules_store() override; | 37 StateStore* rules_store() override; |
38 scoped_refptr<ValueStoreFactory> store_factory() override; | 38 scoped_refptr<ValueStoreFactory> store_factory() override; |
39 InfoMap* info_map() override; | 39 InfoMap* info_map() override; |
40 QuotaService* quota_service() override; | 40 QuotaService* quota_service() override; |
41 AppSorting* app_sorting() override; | 41 AppSorting* app_sorting() override; |
42 const OneShotEvent& ready() const override; | 42 const OneShotEvent& ready() const override; |
43 ContentVerifier* content_verifier() override; | 43 ContentVerifier* content_verifier() override; |
| 44 declarative_net_request::RulesMonitor* rules_monitor() override; |
44 std::unique_ptr<ExtensionSet> GetDependentExtensions( | 45 std::unique_ptr<ExtensionSet> GetDependentExtensions( |
45 const Extension* extension) override; | 46 const Extension* extension) override; |
46 void InstallUpdate(const std::string& extension_id, | 47 void InstallUpdate(const std::string& extension_id, |
47 const base::FilePath& temp_dir) override; | 48 const base::FilePath& temp_dir) override; |
48 | 49 |
49 private: | 50 private: |
50 content::BrowserContext* browser_context_; | 51 content::BrowserContext* browser_context_; |
51 OneShotEvent ready_; | 52 OneShotEvent ready_; |
52 | 53 |
53 DISALLOW_COPY_AND_ASSIGN(MockExtensionSystem); | 54 DISALLOW_COPY_AND_ASSIGN(MockExtensionSystem); |
(...skipping 28 matching lines...) Expand all Loading... |
82 GetServiceForBrowserContext(context, true)); | 83 GetServiceForBrowserContext(context, true)); |
83 } | 84 } |
84 | 85 |
85 private: | 86 private: |
86 DISALLOW_COPY_AND_ASSIGN(MockExtensionSystemFactory); | 87 DISALLOW_COPY_AND_ASSIGN(MockExtensionSystemFactory); |
87 }; | 88 }; |
88 | 89 |
89 } // namespace extensions | 90 } // namespace extensions |
90 | 91 |
91 #endif // EXTENSIONS_BROWSER_MOCK_EXTENSION_SYSTEM_H_ | 92 #endif // EXTENSIONS_BROWSER_MOCK_EXTENSION_SYSTEM_H_ |
OLD | NEW |