summaryrefslogtreecommitdiffstats
path: root/chrome/browser/profile.h
diff options
context:
space:
mode:
authordumi@chromium.org <dumi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-09 23:43:34 +0000
committerdumi@chromium.org <dumi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-09 23:43:34 +0000
commit2f351cb2a5227e76f180fbf3c2295705944f9ab9 (patch)
treefc7845119aa8765f9d1e1449367980b41bb05306 /chrome/browser/profile.h
parent7719ee4ad47c89053320db220eeb55a80d16d730 (diff)
downloadchromium_src-2f351cb2a5227e76f180fbf3c2295705944f9ab9.zip
chromium_src-2f351cb2a5227e76f180fbf3c2295705944f9ab9.tar.gz
chromium_src-2f351cb2a5227e76f180fbf3c2295705944f9ab9.tar.bz2
Adding support for DatabaseTracker messages to
DatabaseDispatcherHost. This code will get called as soon as we switch from WebCore's DatabaseTracker implementation to Chromium's. Also, cleaned up the pre-existing support for VFS messages. BUG=none TEST=none Review URL: http://codereview.chromium.org/340067 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31507 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/profile.h')
-rw-r--r--chrome/browser/profile.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/chrome/browser/profile.h b/chrome/browser/profile.h
index 659e1bd..7497e6d 100644
--- a/chrome/browser/profile.h
+++ b/chrome/browser/profile.h
@@ -29,6 +29,10 @@ class StrictTransportSecurityState;
class SSLConfigService;
}
+namespace webkit_database {
+class DatabaseTracker;
+}
+
class Blacklist;
class BookmarkModel;
class BrowserThemeProvider;
@@ -139,6 +143,9 @@ class Profile {
// profile is not off the record.
virtual Profile* GetOriginalProfile() = 0;
+ // Returns a pointer to the DatabaseTracker instance for this profile.
+ virtual webkit_database::DatabaseTracker* GetDatabaseTracker() = 0;
+
// Retrieves a pointer to the VisitedLinkMaster associated with this
// profile. The VisitedLinkMaster is lazily created the first time
// that this method is called.
@@ -421,6 +428,7 @@ class ProfileImpl : public Profile,
virtual Profile* GetOffTheRecordProfile();
virtual void DestroyOffTheRecordProfile();
virtual Profile* GetOriginalProfile();
+ virtual webkit_database::DatabaseTracker* GetDatabaseTracker();
virtual VisitedLinkMaster* GetVisitedLinkMaster();
virtual UserScriptMaster* GetUserScriptMaster();
virtual SSLHostState* GetSSLHostState();
@@ -595,6 +603,10 @@ class ProfileImpl : public Profile,
// GetSessionService won't recreate the SessionService.
bool shutdown_session_service_;
+ // The main database tracker for this profile.
+ // Should be used only on the file thread.
+ scoped_refptr<webkit_database::DatabaseTracker> db_tracker_;
+
#if defined(OS_CHROMEOS)
chromeos::Preferences chromeos_preferences_;
#endif