summaryrefslogtreecommitdiffstats
path: root/chrome/browser/profile.h
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/profile.h')
-rw-r--r--chrome/browser/profile.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/chrome/browser/profile.h b/chrome/browser/profile.h
index 27e5fcf..2dbc055 100644
--- a/chrome/browser/profile.h
+++ b/chrome/browser/profile.h
@@ -21,6 +21,7 @@
class BookmarkModel;
class DownloadManager;
+class GreasemonkeyMaster;
class HistoryService;
class NavigationController;
class PrefService;
@@ -98,6 +99,11 @@ class Profile {
// that this method is called.
virtual VisitedLinkMaster* GetVisitedLinkMaster() = 0;
+ // Retrieves a pointer to the GreasemonkeyMaster associated with this
+ // profile. The GreasemonkeyMaster is lazily created the first time
+ // that this method is called.
+ virtual GreasemonkeyMaster* GetGreasemonkeyMaster() = 0;
+
// Retrieves a pointer to the HistoryService associated with this
// profile. The HistoryService is lazily created the first time
// that this method is called.
@@ -235,6 +241,7 @@ class ProfileImpl : public Profile {
virtual Profile* GetOffTheRecordProfile();
virtual Profile* GetOriginalProfile();
virtual VisitedLinkMaster* GetVisitedLinkMaster();
+ virtual GreasemonkeyMaster* GetGreasemonkeyMaster();
virtual HistoryService* GetHistoryService(ServiceAccessType sat);
virtual WebDataService* GetWebDataService(ServiceAccessType sat);
virtual PrefService* GetPrefs();
@@ -282,6 +289,7 @@ class ProfileImpl : public Profile {
std::wstring path_;
bool off_the_record_;
scoped_ptr<VisitedLinkMaster> visited_link_master_;
+ scoped_refptr<GreasemonkeyMaster> greasemonkey_master_;
scoped_ptr<PrefService> prefs_;
scoped_ptr<TemplateURLFetcher> template_url_fetcher_;
scoped_ptr<TemplateURLModel> template_url_model_;