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

Unified Diff: extensions/browser/declarative_user_script_master.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
Index: extensions/browser/declarative_user_script_master.h
diff --git a/chrome/browser/extensions/declarative_user_script_master.h b/extensions/browser/declarative_user_script_master.h
similarity index 77%
rename from chrome/browser/extensions/declarative_user_script_master.h
rename to extensions/browser/declarative_user_script_master.h
index e9af244cbe43e0ea46607b438231ddaadc974f53..c7a23c3f6b2ec692759d8753064f80b6df65e257 100644
--- a/chrome/browser/extensions/declarative_user_script_master.h
+++ b/extensions/browser/declarative_user_script_master.h
@@ -2,13 +2,15 @@
// 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_MASTER_H_
-#define CHROME_BROWSER_EXTENSIONS_DECLARATIVE_USER_SCRIPT_MASTER_H_
+#ifndef EXTENSIONS_BROWSER_DECLARATIVE_USER_SCRIPT_MASTER_H_
+#define EXTENSIONS_BROWSER_DECLARATIVE_USER_SCRIPT_MASTER_H_
#include "base/scoped_observer.h"
-#include "chrome/browser/extensions/extension_user_script_loader.h"
+#include "extensions/browser/extension_user_script_loader.h"
-class Profile;
+namespace content {
+class BrowserContext;
+}
namespace extensions {
@@ -20,7 +22,8 @@ class UserScript;
// and clearing scripts.
class DeclarativeUserScriptMaster {
public:
- DeclarativeUserScriptMaster(Profile* profile, const HostID& host_id);
+ DeclarativeUserScriptMaster(content::BrowserContext* browser_context,
+ const HostID& host_id);
~DeclarativeUserScriptMaster();
// Adds script to shared memory region. This may not happen right away if a
@@ -50,4 +53,4 @@ class DeclarativeUserScriptMaster {
} // namespace extensions
-#endif // CHROME_BROWSER_EXTENSIONS_DECLARATIVE_USER_SCRIPT_MASTER_H_
+#endif // EXTENSIONS_BROWSER_DECLARATIVE_USER_SCRIPT_MASTER_H_
« no previous file with comments | « extensions/browser/declarative_user_script_manager.cc ('k') | extensions/browser/declarative_user_script_master.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698