diff options
Diffstat (limited to 'Source/WebKit/chromium/src/WebIDBDatabaseImpl.cpp')
-rw-r--r-- | Source/WebKit/chromium/src/WebIDBDatabaseImpl.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/Source/WebKit/chromium/src/WebIDBDatabaseImpl.cpp b/Source/WebKit/chromium/src/WebIDBDatabaseImpl.cpp index e71029deb..90c262389 100644 --- a/Source/WebKit/chromium/src/WebIDBDatabaseImpl.cpp +++ b/Source/WebKit/chromium/src/WebIDBDatabaseImpl.cpp @@ -75,6 +75,11 @@ void WebIDBDatabaseImpl::deleteObjectStore(const WebString& name, const WebIDBTr m_databaseBackend->deleteObjectStore(name, transaction.getIDBTransactionBackendInterface(), ec); } +void WebIDBDatabaseImpl::deleteObjectStore(long long objectStoreId, const WebIDBTransaction& transaction, WebExceptionCode& ec) +{ + m_databaseBackend->deleteObjectStore(objectStoreId, transaction.getIDBTransactionBackendInterface(), ec); +} + void WebIDBDatabaseImpl::setVersion(const WebString& version, WebIDBCallbacks* callbacks, WebExceptionCode& ec) { m_databaseBackend->setVersion(version, IDBCallbacksProxy::create(adoptPtr(callbacks)), m_databaseCallbacks, ec); @@ -91,6 +96,17 @@ WebIDBTransaction* WebIDBDatabaseImpl::transaction(const WebDOMStringList& names return new WebIDBTransactionImpl(transaction); } +WebIDBTransaction* WebIDBDatabaseImpl::transaction(const WebVector<long long>& objectStoreIds, unsigned short mode) +{ + Vector<int64_t> objectStoreIdList(objectStoreIds.size()); + for (size_t i = 0; i < objectStoreIds.size(); ++i) + objectStoreIdList[i] = objectStoreIds[i]; + RefPtr<IDBTransactionBackendInterface> transaction = m_databaseBackend->transaction(objectStoreIdList, mode); + if (!transaction) + return 0; + return new WebIDBTransactionImpl(transaction); +} + void WebIDBDatabaseImpl::close() { // Use the callbacks passed in to the constructor so that the backend in |