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

Unified Diff: chrome/browser/extensions/user_script_master.h

Issue 567037: Initial work on making extensions work in incognito mode. (Closed)
Patch Set: added experimental requirement Created 10 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: chrome/browser/extensions/user_script_master.h
diff --git a/chrome/browser/extensions/user_script_master.h b/chrome/browser/extensions/user_script_master.h
index 0423305dff9418999ef7e37a64c2b427dc584bba..19562f0e28747839f701131063153db9e2fcb412 100644
--- a/chrome/browser/extensions/user_script_master.h
+++ b/chrome/browser/extensions/user_script_master.h
@@ -17,6 +17,7 @@ namespace base {
class StringPiece;
}
+class Extension;
class Profile;
// Manages a segment of shared memory that contains the user scripts the user
@@ -46,6 +47,11 @@ class UserScriptMaster : public base::RefCountedThreadSafe<UserScriptMaster>,
// Returns the path to the directory user scripts are stored in.
FilePath user_script_dir() const { return user_script_dir_; }
+ // Note: this is only for testing. This will reload the scripts associated
+ // with the given extension. This is only temporary until we get better
+ // machinery in place for toggling incognito-enabled extensions.
+ void ReloadExtensionForTesting(Extension* extension);
+
protected:
friend class base::RefCountedThreadSafe<UserScriptMaster>;
« no previous file with comments | « chrome/browser/extensions/incognito_noscript_apitest.cc ('k') | chrome/browser/extensions/user_script_master.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698