Index: chrome/browser/extensions/declarative_user_script_manager.h |
diff --git a/chrome/browser/extensions/declarative_user_script_manager.h b/chrome/browser/extensions/declarative_user_script_manager.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..27951db430e346d40566d7119a804be0a2eda697 |
--- /dev/null |
+++ b/chrome/browser/extensions/declarative_user_script_manager.h |
@@ -0,0 +1,39 @@ |
+// Copyright 2014 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef CHROME_BROWSER_EXTENSIONS_DECLARATIVE_USER_SCRIPT_MANAGER_H_ |
+#define CHROME_BROWSER_EXTENSIONS_DECLARATIVE_USER_SCRIPT_MANAGER_H_ |
+ |
+#include "base/macros.h" |
+#include "base/memory/scoped_vector.h" |
+#include "extensions/common/extension.h" |
+ |
+class Profile; |
+ |
+namespace extensions { |
+ |
+class DeclarativeUserScriptMaster; |
+ |
+class DeclarativeUserScriptManager { |
+ public: |
+ explicit DeclarativeUserScriptManager(Profile* profile); |
+ ~DeclarativeUserScriptManager(); |
+ |
+ // Get the user script master for declarative scripts, if any. |
+ DeclarativeUserScriptMaster* GetDeclarativeUserScriptMasterByID( |
+ const ExtensionId& extension_id); |
+ private: |
+ Profile* profile_; |
+ |
+ // Shared memory region manager for programmatically declared scripts. |
+ // Managers are instantiated the first time the declarative |
+ // API is used by an extension to request content scripts. |
+ ScopedVector<DeclarativeUserScriptMaster> declarative_user_script_masters_; |
+ |
+ DISALLOW_COPY_AND_ASSIGN(DeclarativeUserScriptManager); |
+}; |
+ |
+} // extensions |
+ |
+#endif // CHROME_BROWSER_EXTENSIONS_DECLARATIVE_USER_SCRIPT_MANAGER_H_ |