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

Unified Diff: extensions/browser/extension_system.h

Issue 420543002: Declarative content scripts: Browser-side: per-extension shared memory regions (lazily loaded) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Refactor relationship between UserScriptMaster and its subclasses Created 6 years, 5 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 baa8b5d998582e4a5008365f27e2cea890380b4a..d2c337914b2c1fe20dbfaf4b69b0d5a560b2994f 100644
--- a/extensions/browser/extension_system.h
+++ b/extensions/browser/extension_system.h
@@ -27,6 +27,7 @@ namespace extensions {
class Blacklist;
class ContentVerifier;
+class DeclarativeUserScriptMaster;
class ErrorConsole;
class EventRouter;
class Extension;
@@ -135,6 +136,11 @@ class ExtensionSystem : public KeyedService {
// so it can be retrieved from ExtensionSystem directly.
virtual scoped_ptr<ExtensionSet> GetDependentExtensions(
const Extension* extension) = 0;
+
+ // Get the user script master for declarative scripts, if any.
+ virtual DeclarativeUserScriptMaster*
+ GetDeclarativeUserScriptMasterByExtension(
+ const ExtensionId& extension_id) = 0;
};
} // namespace extensions

Powered by Google App Engine
This is Rietveld 408576698