diff options
author | pkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-23 21:23:53 +0000 |
---|---|---|
committer | pkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-23 21:23:53 +0000 |
commit | 9cddbe374f0d3d702532803bf4b2a15e76a918e4 (patch) | |
tree | d5bf36e3456fb7471be1a8b51ca30a66c1c68d08 /chrome/browser/profile.h | |
parent | f704c5b267c4eaca90408f485c5d921174300867 (diff) | |
download | chromium_src-9cddbe374f0d3d702532803bf4b2a15e76a918e4.zip chromium_src-9cddbe374f0d3d702532803bf4b2a15e76a918e4.tar.gz chromium_src-9cddbe374f0d3d702532803bf4b2a15e76a918e4.tar.bz2 |
Add functions to purge the Web Database memory and get the service without creating it, for the memory purger.
BUG=23400
TEST=none
Review URL: http://codereview.chromium.org/326014
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29945 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/profile.h')
-rw-r--r-- | chrome/browser/profile.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/chrome/browser/profile.h b/chrome/browser/profile.h index d190989..741b5cf 100644 --- a/chrome/browser/profile.h +++ b/chrome/browser/profile.h @@ -209,6 +209,10 @@ class Profile { // the ServiceAccessType definition above. virtual WebDataService* GetWebDataService(ServiceAccessType access) = 0; + // Similar to GetWebDataService(), but won't create the web data service if it + // doesn't already exist. + virtual WebDataService* GetWebDataServiceWithoutCreating() = 0; + // Returns the PasswordStore for this profile. This is owned by the Profile. virtual PasswordStore* GetPasswordStore(ServiceAccessType access) = 0; @@ -402,6 +406,7 @@ class ProfileImpl : public Profile, virtual HistoryService* GetHistoryService(ServiceAccessType sat); virtual HistoryService* GetHistoryServiceWithoutCreating(); virtual WebDataService* GetWebDataService(ServiceAccessType sat); + virtual WebDataService* GetWebDataServiceWithoutCreating(); virtual PasswordStore* GetPasswordStore(ServiceAccessType sat); virtual PrefService* GetPrefs(); virtual TemplateURLModel* GetTemplateURLModel(); |