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

Unified Diff: extensions/browser/declarative_user_script_manager.h

Issue 955473002: Move DeclarativeUserScriptManager/Master and UserScriptLoader to //extensions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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_browser_extensions.gypi ('k') | extensions/browser/declarative_user_script_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/browser/declarative_user_script_manager.h
diff --git a/chrome/browser/extensions/declarative_user_script_manager.h b/extensions/browser/declarative_user_script_manager.h
similarity index 82%
rename from chrome/browser/extensions/declarative_user_script_manager.h
rename to extensions/browser/declarative_user_script_manager.h
index c89698a2900106333cb12c231d02e11cb2a840fc..35efbc5159160eeafffd106e8667752160b52f44 100644
--- a/chrome/browser/extensions/declarative_user_script_manager.h
+++ b/extensions/browser/declarative_user_script_manager.h
@@ -2,8 +2,8 @@
// 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_
+#ifndef EXTENSIONS_BROWSER_DECLARATIVE_USER_SCRIPT_MANAGER_H_
+#define EXTENSIONS_BROWSER_DECLARATIVE_USER_SCRIPT_MANAGER_H_
#include <map>
@@ -13,7 +13,9 @@
#include "extensions/browser/extension_registry_observer.h"
#include "extensions/common/host_id.h"
-class Profile;
+namespace content {
+class BrowserContext;
+}
namespace extensions {
class DeclarativeUserScriptMaster;
@@ -21,7 +23,8 @@ class DeclarativeUserScriptMaster;
// Manages a set of DeclarativeUserScriptMaster objects for script injections.
class DeclarativeUserScriptManager : public ExtensionRegistryObserver {
public:
- explicit DeclarativeUserScriptManager(Profile* profile);
+ explicit DeclarativeUserScriptManager(
+ content::BrowserContext* browser_context);
~DeclarativeUserScriptManager() override;
// Gets the user script master for declarative scripts by the given
@@ -46,7 +49,7 @@ class DeclarativeUserScriptManager : public ExtensionRegistryObserver {
// is lazily initialized.
UserScriptMasterMap declarative_user_script_masters_;
- Profile* profile_;
+ content::BrowserContext* browser_context_;
ScopedObserver<ExtensionRegistry, ExtensionRegistryObserver>
extension_registry_observer_;
@@ -56,4 +59,4 @@ class DeclarativeUserScriptManager : public ExtensionRegistryObserver {
} // namespace extensions
-#endif // CHROME_BROWSER_EXTENSIONS_DECLARATIVE_USER_SCRIPT_MANAGER_H_
+#endif // EXTENSIONS_BROWSER_DECLARATIVE_USER_SCRIPT_MANAGER_H_
« no previous file with comments | « chrome/chrome_browser_extensions.gypi ('k') | extensions/browser/declarative_user_script_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698