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/user_script_loader.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 | « extensions/browser/extension_user_script_loader.cc ('k') | extensions/browser/user_script_loader.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/browser/user_script_loader.h
diff --git a/chrome/browser/extensions/user_script_loader.h b/extensions/browser/user_script_loader.h
similarity index 94%
rename from chrome/browser/extensions/user_script_loader.h
rename to extensions/browser/user_script_loader.h
index abe2d90bcf7173eef52d1d547c07717d0c37eec2..c800933cf775d64962eef73abf50b5593788ce83 100644
--- a/chrome/browser/extensions/user_script_loader.h
+++ b/extensions/browser/user_script_loader.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_USER_SCRIPT_LOADER_H_
-#define CHROME_BROWSER_EXTENSIONS_USER_SCRIPT_LOADER_H_
+#ifndef EXTENSIONS_BROWSER_USER_SCRIPT_LOADER_H_
+#define EXTENSIONS_BROWSER_USER_SCRIPT_LOADER_H_
#include <map>
#include <set>
@@ -27,8 +27,6 @@ class BrowserContext;
class RenderProcessHost;
}
-class Profile;
-
namespace extensions {
class ContentVerifier;
@@ -56,7 +54,7 @@ class UserScriptLoader : public content::NotificationObserver {
static bool ParseMetadataHeader(const base::StringPiece& script_text,
UserScript* script);
- UserScriptLoader(Profile* profile,
+ UserScriptLoader(content::BrowserContext* browser_context,
const HostID& host_id,
const scoped_refptr<ContentVerifier>& content_verifier);
~UserScriptLoader() override;
@@ -103,7 +101,7 @@ class UserScriptLoader : public content::NotificationObserver {
// set to be true, calls AttempLoad() to bootstrap.
void SetReady(bool ready);
- Profile* profile() const { return profile_; }
+ content::BrowserContext* browser_context() const { return browser_context_; }
const HostID& host_id() const { return host_id_; }
private:
@@ -173,8 +171,8 @@ class UserScriptLoader : public content::NotificationObserver {
// Whether or not we are currently loading.
bool is_loading_;
- // The profile for which the scripts managed here are installed.
- Profile* profile_;
+ // The browser_context for which the scripts managed here are installed.
+ content::BrowserContext* browser_context_;
// ID of the host that owns these scripts, if any. This is only set to a
// non-empty value for declarative user script shared memory regions.
@@ -190,4 +188,4 @@ class UserScriptLoader : public content::NotificationObserver {
} // namespace extensions
-#endif // CHROME_BROWSER_EXTENSIONS_USER_SCRIPT_LOADER_H_
+#endif // EXTENSIONS_BROWSER_USER_SCRIPT_LOADER_H_
« no previous file with comments | « extensions/browser/extension_user_script_loader.cc ('k') | extensions/browser/user_script_loader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698