diff options
Diffstat (limited to 'WebCore/storage/IDBIndexBackendImpl.cpp')
-rw-r--r-- | WebCore/storage/IDBIndexBackendImpl.cpp | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/WebCore/storage/IDBIndexBackendImpl.cpp b/WebCore/storage/IDBIndexBackendImpl.cpp index 406e37f..180ff1d 100644 --- a/WebCore/storage/IDBIndexBackendImpl.cpp +++ b/WebCore/storage/IDBIndexBackendImpl.cpp @@ -28,10 +28,16 @@ #if ENABLE(INDEXED_DATABASE) +#include "IDBDatabaseBackendImpl.h" +#include "IDBObjectStoreBackendImpl.h" +#include "SQLiteDatabase.h" + namespace WebCore { -IDBIndexBackendImpl::IDBIndexBackendImpl(const String& name, const String& keyPath, bool unique) - : m_name(name) +IDBIndexBackendImpl::IDBIndexBackendImpl(IDBObjectStoreBackendImpl* objectStore, int64_t id, const String& name, const String& keyPath, bool unique) + : m_objectStore(objectStore) + , m_id(id) + , m_name(name) , m_keyPath(keyPath) , m_unique(unique) { @@ -41,6 +47,11 @@ IDBIndexBackendImpl::~IDBIndexBackendImpl() { } +SQLiteDatabase& IDBIndexBackendImpl::sqliteDatabase() const +{ + return m_objectStore->database()->sqliteDatabase(); +} + } // namespace WebCore #endif // ENABLE(INDEXED_DATABASE) |