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

Side by Side Diff: extensions/browser/mock_extension_system.h

Issue 1362043005: Add extensions code to use common updater in components/update_client/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merged latest origin/master Created 5 years, 2 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 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
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
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_
OLDNEW
« no previous file with comments | « extensions/browser/extensions_browser_client.cc ('k') | extensions/browser/mock_extension_system.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698