diff options
Diffstat (limited to 'WebCore/storage/AbstractDatabase.h')
-rw-r--r-- | WebCore/storage/AbstractDatabase.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/WebCore/storage/AbstractDatabase.h b/WebCore/storage/AbstractDatabase.h index d38a819..e302909 100644 --- a/WebCore/storage/AbstractDatabase.h +++ b/WebCore/storage/AbstractDatabase.h @@ -31,6 +31,7 @@ #if ENABLE(DATABASE) +#include "ExceptionCode.h" #include "PlatformString.h" #include "SQLiteDatabase.h" #include <wtf/Forward.h> @@ -45,8 +46,6 @@ class DatabaseAuthorizer; class ScriptExecutionContext; class SecurityOrigin; -typedef int ExceptionCode; - class AbstractDatabase : public ThreadSafeShared<AbstractDatabase> { public: static bool isAvailable(); @@ -65,6 +64,10 @@ public: virtual String displayName() const; virtual unsigned long estimatedSize() const; virtual String fileName() const; + SQLiteDatabase& sqliteDatabase() { return m_sqliteDatabase; } + + unsigned long long maximumSize() const; + void incrementalVacuumIfNeeded(); // FIXME: move all version-related methods to a DatabaseVersionTracker class bool versionMatchesExpected() const; @@ -103,8 +106,6 @@ protected: unsigned long m_estimatedSize; String m_filename; - SQLiteDatabase m_sqliteDatabase; - #ifndef NDEBUG String databaseDebugName() const { return m_contextThreadSecurityOrigin->toString() + "::" + m_name; } #endif @@ -116,6 +117,8 @@ private: bool m_opened; bool m_new; + SQLiteDatabase m_sqliteDatabase; + RefPtr<DatabaseAuthorizer> m_databaseAuthorizer; }; |