summaryrefslogtreecommitdiffstats
path: root/chrome/test/testing_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/test/testing_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/test/testing_profile.h')
-rw-r--r--chrome/test/testing_profile.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/chrome/test/testing_profile.h b/chrome/test/testing_profile.h
index 0d13268..14b64da 100644
--- a/chrome/test/testing_profile.h
+++ b/chrome/test/testing_profile.h
@@ -18,7 +18,6 @@
#include "chrome/browser/sessions/session_service.h"
#include "chrome/common/pref_service.h"
-
class TestingProfile : public Profile {
public:
TestingProfile();
@@ -76,6 +75,7 @@ class TestingProfile : public Profile {
virtual void DestroyOffTheRecordProfile() {}
virtual Profile* GetOriginalProfile() { return this; }
+ virtual webkit_database::DatabaseTracker* GetDatabaseTracker();
virtual VisitedLinkMaster* GetVisitedLinkMaster() { return NULL; }
virtual ExtensionsService* GetExtensionsService() { return NULL; }
virtual UserScriptMaster* GetUserScriptMaster() { return NULL; }
@@ -241,6 +241,10 @@ class TestingProfile : public Profile {
// Did the last session exit cleanly? Default is true.
bool last_session_exited_cleanly_;
+
+ // The main database tracker for this profile.
+ // Should be used only on the file thread.
+ scoped_refptr<webkit_database::DatabaseTracker> db_tracker_;
};
// A profile that derives from another profile. This does not actually
@@ -248,8 +252,8 @@ class TestingProfile : public Profile {
// site information.
class DerivedTestingProfile : public TestingProfile {
public:
- DerivedTestingProfile(Profile* profile) : original_profile_(profile) {
- }
+ explicit DerivedTestingProfile(Profile* profile)
+ : original_profile_(profile) {}
virtual ProfileId GetRuntimeId() {
return original_profile_->GetRuntimeId();