diff options
Diffstat (limited to 'chrome/browser/extensions/user_script_master.h')
-rw-r--r-- | chrome/browser/extensions/user_script_master.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/chrome/browser/extensions/user_script_master.h b/chrome/browser/extensions/user_script_master.h index 0423305..19562f0 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>; |