| 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 scoped_ptr<ExtensionSet> GetDependentExtensions( | 44 std::unique_ptr<ExtensionSet> GetDependentExtensions( |
| 45 const Extension* extension) override; | 45 const Extension* extension) override; |
| 46 void InstallUpdate(const std::string& extension_id, | 46 void InstallUpdate(const std::string& extension_id, |
| 47 const base::FilePath& temp_dir) override; | 47 const base::FilePath& temp_dir) override; |
| 48 | 48 |
| 49 private: | 49 private: |
| 50 content::BrowserContext* browser_context_; | 50 content::BrowserContext* browser_context_; |
| 51 OneShotEvent ready_; | 51 OneShotEvent ready_; |
| 52 | 52 |
| 53 DISALLOW_COPY_AND_ASSIGN(MockExtensionSystem); | 53 DISALLOW_COPY_AND_ASSIGN(MockExtensionSystem); |
| 54 }; | 54 }; |
| (...skipping 27 matching lines...) Expand all Loading... |
| 82 GetServiceForBrowserContext(context, true)); | 82 GetServiceForBrowserContext(context, true)); |
| 83 } | 83 } |
| 84 | 84 |
| 85 private: | 85 private: |
| 86 DISALLOW_COPY_AND_ASSIGN(MockExtensionSystemFactory); | 86 DISALLOW_COPY_AND_ASSIGN(MockExtensionSystemFactory); |
| 87 }; | 87 }; |
| 88 | 88 |
| 89 } // namespace extensions | 89 } // namespace extensions |
| 90 | 90 |
| 91 #endif // EXTENSIONS_BROWSER_MOCK_EXTENSION_SYSTEM_H_ | 91 #endif // EXTENSIONS_BROWSER_MOCK_EXTENSION_SYSTEM_H_ |
| OLD | NEW |