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 "components/keyed_service/content/browser_context_dependency_manager.h" | 8 #include "components/keyed_service/content/browser_context_dependency_manager.h" |
9 #include "extensions/browser/extension_registry_factory.h" | 9 #include "extensions/browser/extension_registry_factory.h" |
10 #include "extensions/browser/extension_system.h" | 10 #include "extensions/browser/extension_system.h" |
(...skipping 23 matching lines...) Expand all Loading... |
34 SharedUserScriptMaster* shared_user_script_master() override; | 34 SharedUserScriptMaster* shared_user_script_master() override; |
35 StateStore* state_store() override; | 35 StateStore* state_store() override; |
36 StateStore* rules_store() override; | 36 StateStore* rules_store() override; |
37 InfoMap* info_map() override; | 37 InfoMap* info_map() override; |
38 QuotaService* quota_service() override; | 38 QuotaService* quota_service() override; |
39 AppSorting* app_sorting() override; | 39 AppSorting* app_sorting() override; |
40 const OneShotEvent& ready() const override; | 40 const OneShotEvent& ready() const override; |
41 ContentVerifier* content_verifier() override; | 41 ContentVerifier* content_verifier() override; |
42 scoped_ptr<ExtensionSet> GetDependentExtensions( | 42 scoped_ptr<ExtensionSet> GetDependentExtensions( |
43 const Extension* extension) override; | 43 const Extension* extension) override; |
| 44 void InstallUpdate(const std::string& extension_id, |
| 45 const base::FilePath& temp_dir) override; |
44 | 46 |
45 private: | 47 private: |
46 content::BrowserContext* browser_context_; | 48 content::BrowserContext* browser_context_; |
47 OneShotEvent ready_; | 49 OneShotEvent ready_; |
48 | 50 |
49 DISALLOW_COPY_AND_ASSIGN(MockExtensionSystem); | 51 DISALLOW_COPY_AND_ASSIGN(MockExtensionSystem); |
50 }; | 52 }; |
51 | 53 |
52 // A factory to create a MockExtensionSystem. Sample use: | 54 // A factory to create a MockExtensionSystem. Sample use: |
53 // | 55 // |
(...skipping 24 matching lines...) Expand all Loading... |
78 GetServiceForBrowserContext(context, true)); | 80 GetServiceForBrowserContext(context, true)); |
79 } | 81 } |
80 | 82 |
81 private: | 83 private: |
82 DISALLOW_COPY_AND_ASSIGN(MockExtensionSystemFactory); | 84 DISALLOW_COPY_AND_ASSIGN(MockExtensionSystemFactory); |
83 }; | 85 }; |
84 | 86 |
85 } // namespace extensions | 87 } // namespace extensions |
86 | 88 |
87 #endif // EXTENSIONS_BROWSER_MOCK_EXTENSION_SYSTEM_H_ | 89 #endif // EXTENSIONS_BROWSER_MOCK_EXTENSION_SYSTEM_H_ |
OLD | NEW |