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

Unified Diff: extensions/browser/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 side-by-side diff with in-line comments
Download patch
Index: extensions/browser/extension_system.h
diff --git a/extensions/browser/extension_system.h b/extensions/browser/extension_system.h
index 400f45e866734c14dba9cbc4d9a25e95ed6b8306..10b0de7080400452652abcef272b770f2f30e985 100644
--- a/extensions/browser/extension_system.h
+++ b/extensions/browser/extension_system.h
@@ -44,6 +44,7 @@ class QuotaService;
class RuntimeData;
class SharedUserScriptMaster;
class StateStore;
+class WebViewContentScriptManager;
// ExtensionSystem manages the lifetime of many of the services used by the
// extensions and apps system, and it handles startup and shutdown as needed.
@@ -105,6 +106,9 @@ class ExtensionSystem : public KeyedService {
// Lives on the UI thread. Created at startup.
virtual QuotaService* quota_service() = 0;
+ // The WebViewContentScriptManager is created at startup.
+ virtual WebViewContentScriptManager* web_view_content_script_manager() = 0;
+
// Called by the ExtensionService that lives in this system. Gives the
// info map a chance to react to the load event before the EXTENSION_LOADED
// notification has fired. The purpose for handling this event first is to

Powered by Google App Engine
This is Rietveld 408576698