diff options
Diffstat (limited to 'WebCore/storage/IDBDatabaseBackendImpl.h')
-rw-r--r-- | WebCore/storage/IDBDatabaseBackendImpl.h | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/WebCore/storage/IDBDatabaseBackendImpl.h b/WebCore/storage/IDBDatabaseBackendImpl.h index f6ff058..60bec1f 100644 --- a/WebCore/storage/IDBDatabaseBackendImpl.h +++ b/WebCore/storage/IDBDatabaseBackendImpl.h @@ -28,21 +28,25 @@ #include "IDBCallbacks.h" #include "IDBDatabase.h" -#include "StringHash.h" #include <wtf/HashMap.h> +#include <wtf/text/StringHash.h> #if ENABLE(INDEXED_DATABASE) namespace WebCore { +class SQLiteDatabase; + class IDBDatabaseBackendImpl : public IDBDatabaseBackendInterface { public: - static PassRefPtr<IDBDatabaseBackendInterface> create(const String& name, const String& description, const String& version) + static PassRefPtr<IDBDatabaseBackendImpl> create(const String& name, const String& description, PassOwnPtr<SQLiteDatabase> database) { - return adoptRef(new IDBDatabaseBackendImpl(name, description, version)); + return adoptRef(new IDBDatabaseBackendImpl(name, description, database)); } virtual ~IDBDatabaseBackendImpl(); + void setDescription(const String& description); + // Implements IDBDatabase virtual String name() const { return m_name; } virtual String description() const { return m_description; } @@ -54,7 +58,9 @@ public: virtual void removeObjectStore(const String& name, PassRefPtr<IDBCallbacks>); virtual PassRefPtr<IDBTransactionBackendInterface> transaction(DOMStringList* storeNames, unsigned short mode, unsigned long timeout); private: - IDBDatabaseBackendImpl(const String& name, const String& description, const String& version); + IDBDatabaseBackendImpl(const String& name, const String& description, PassOwnPtr<SQLiteDatabase> database); + + OwnPtr<SQLiteDatabase> m_sqliteDatabase; String m_name; String m_description; |