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

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

Issue 959413003: Implement <webview>.addContentScript/removeContentScript API [1] (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Make the API work before the first navigation of guest. Created 5 years, 9 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 24 matching lines...) Expand all
35 SharedUserScriptMaster* shared_user_script_master() override; 35 SharedUserScriptMaster* shared_user_script_master() override;
36 DeclarativeUserScriptManager* declarative_user_script_manager() override; 36 DeclarativeUserScriptManager* declarative_user_script_manager() override;
37 StateStore* state_store() override; 37 StateStore* state_store() override;
38 StateStore* rules_store() override; 38 StateStore* rules_store() override;
39 InfoMap* info_map() override; 39 InfoMap* info_map() override;
40 LazyBackgroundTaskQueue* lazy_background_task_queue() override; 40 LazyBackgroundTaskQueue* lazy_background_task_queue() override;
41 EventRouter* event_router() override; 41 EventRouter* event_router() override;
42 ErrorConsole* error_console() override; 42 ErrorConsole* error_console() override;
43 InstallVerifier* install_verifier() override; 43 InstallVerifier* install_verifier() override;
44 QuotaService* quota_service() override; 44 QuotaService* quota_service() override;
45 WebViewContentScriptManager* web_view_content_script_manager() override;
45 const OneShotEvent& ready() const override; 46 const OneShotEvent& ready() const override;
46 ContentVerifier* content_verifier() override; 47 ContentVerifier* content_verifier() override;
47 scoped_ptr<ExtensionSet> GetDependentExtensions( 48 scoped_ptr<ExtensionSet> GetDependentExtensions(
48 const Extension* extension) override; 49 const Extension* extension) override;
49 50
50 private: 51 private:
51 content::BrowserContext* browser_context_; 52 content::BrowserContext* browser_context_;
52 OneShotEvent ready_; 53 OneShotEvent ready_;
53 54
54 // Not owned, defaults to null. 55 // Not owned, defaults to null.
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 GetServiceForBrowserContext(context, true)); 87 GetServiceForBrowserContext(context, true));
87 } 88 }
88 89
89 private: 90 private:
90 DISALLOW_COPY_AND_ASSIGN(MockExtensionSystemFactory); 91 DISALLOW_COPY_AND_ASSIGN(MockExtensionSystemFactory);
91 }; 92 };
92 93
93 } // namespace extensions 94 } // namespace extensions
94 95
95 #endif // EXTENSIONS_BROWSER_MOCK_EXTENSION_SYSTEM_H_ 96 #endif // EXTENSIONS_BROWSER_MOCK_EXTENSION_SYSTEM_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698