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 |