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

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: Fix nit and rebase from master Created 6 years, 4 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
« no previous file with comments | « chrome/chrome_tests_unit.gypi ('k') | extensions/browser/mock_extension_system.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/browser/extension_system.h
diff --git a/extensions/browser/extension_system.h b/extensions/browser/extension_system.h
index baa8b5d998582e4a5008365f27e2cea890380b4a..3f297ee1e50d72b4d2248b4e04e4617369dc6d80 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;
@@ -40,8 +41,8 @@ class OneShotEvent;
class ProcessManager;
class QuotaService;
class RuntimeData;
+class SharedUserScriptMaster;
class StateStore;
-class UserScriptMaster;
// ExtensionSystem manages the lifetime of many of the services used by the
// extensions and apps system, and it handles startup and shutdown as needed.
@@ -72,8 +73,8 @@ class ExtensionSystem : public KeyedService {
// The ManagementPolicy is created at startup.
virtual ManagementPolicy* management_policy() = 0;
- // The UserScriptMaster is created at startup.
- virtual UserScriptMaster* user_script_master() = 0;
+ // The SharedUserScriptMaster is created at startup.
+ virtual SharedUserScriptMaster* shared_user_script_master() = 0;
// The ProcessManager is created at startup.
virtual ProcessManager* process_manager() = 0;
@@ -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
« no previous file with comments | « chrome/chrome_tests_unit.gypi ('k') | extensions/browser/mock_extension_system.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698