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, 5 insertions, 1 deletions
diff --git a/chrome/browser/extensions/user_script_master.h b/chrome/browser/extensions/user_script_master.h index ff1e589..3a7afd5 100644 --- a/chrome/browser/extensions/user_script_master.h +++ b/chrome/browser/extensions/user_script_master.h @@ -12,6 +12,7 @@ #include "base/scoped_ptr.h" #include "base/shared_memory.h" #include "chrome/browser/chrome_thread.h" +#include "chrome/browser/profile.h" #include "chrome/common/extensions/user_script.h" #include "chrome/common/notification_registrar.h" #include "testing/gtest/include/gtest/gtest_prod.h" @@ -28,7 +29,7 @@ class UserScriptMaster : public base::RefCountedThreadSafe<UserScriptMaster>, public: // For testability, the constructor takes the path the scripts live in. // This is normally a directory inside the profile. - explicit UserScriptMaster(const FilePath& script_dir); + explicit UserScriptMaster(const FilePath& script_dir, Profile* profile); // Add a watched directory. All scripts will be reloaded when any file in // this directory changes. @@ -164,6 +165,9 @@ class UserScriptMaster : public base::RefCountedThreadSafe<UserScriptMaster>, // finishes. This boolean tracks whether another scan is pending. bool pending_scan_; + // The profile for which the scripts managed here are installed. + Profile* profile_; + DISALLOW_COPY_AND_ASSIGN(UserScriptMaster); }; |