diff options
author | Simon Hausmann <simon.hausmann@digia.com> | 2012-11-22 09:09:45 +0100 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@digia.com> | 2012-11-22 09:10:13 +0100 |
commit | 470286ecfe79d59df14944e5b5d34630fc739391 (patch) | |
tree | 43983212872e06cebefd2ae474418fa2908ca54c /Source/WebKit/chromium/src/WebIDBObjectStoreImpl.cpp | |
parent | 23037105e948c2065da5a937d3a2396b0ff45c1e (diff) | |
download | qtwebkit-470286ecfe79d59df14944e5b5d34630fc739391.tar.gz |
Imported WebKit commit e89504fa9195b2063b2530961d4b73dd08de3242 (http://svn.webkit.org/repository/webkit/trunk@135485)
Change-Id: I03774e5ac79721c13ffa30d152537a74d0b12e66
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'Source/WebKit/chromium/src/WebIDBObjectStoreImpl.cpp')
-rwxr-xr-x | Source/WebKit/chromium/src/WebIDBObjectStoreImpl.cpp | 54 |
1 files changed, 0 insertions, 54 deletions
diff --git a/Source/WebKit/chromium/src/WebIDBObjectStoreImpl.cpp b/Source/WebKit/chromium/src/WebIDBObjectStoreImpl.cpp index 85bac13b3..102804bc8 100755 --- a/Source/WebKit/chromium/src/WebIDBObjectStoreImpl.cpp +++ b/Source/WebKit/chromium/src/WebIDBObjectStoreImpl.cpp @@ -58,23 +58,6 @@ void WebIDBObjectStoreImpl::get(const WebIDBKeyRange& keyRange, WebIDBCallbacks* m_objectStore->get(keyRange, IDBCallbacksProxy::create(adoptPtr(callbacks)), transaction.getIDBTransactionBackendInterface(), ec); } -void WebIDBObjectStoreImpl::putWithIndexKeys(const WebSerializedScriptValue& value, const WebIDBKey& key, PutMode putMode, WebIDBCallbacks* callbacks, const WebIDBTransaction& transaction, const WebVector<WebString>& webIndexNames, const WebVector<WebIndexKeys>& webIndexKeys, WebExceptionCode& ec) -{ - ASSERT(webIndexNames.size() == webIndexKeys.size()); - Vector<String> indexNames(webIndexNames.size()); - Vector<IDBObjectStoreBackendInterface::IndexKeys> indexKeys(webIndexKeys.size()); - - for (size_t i = 0; i < webIndexNames.size(); ++i) { - indexNames[i] = webIndexNames[i]; - Vector<RefPtr<IDBKey> > indexKeyList(webIndexKeys[i].size()); - for (size_t j = 0; j < webIndexKeys[i].size(); ++j) - indexKeyList[j] = webIndexKeys[i][j]; - indexKeys[i] = indexKeyList; - } - - m_objectStore->putWithIndexKeys(value, key, static_cast<IDBObjectStoreBackendInterface::PutMode>(putMode), IDBCallbacksProxy::create(adoptPtr(callbacks)), transaction.getIDBTransactionBackendInterface(), indexNames, indexKeys, ec); -} - void WebIDBObjectStoreImpl::put(const WebSerializedScriptValue& value, const WebIDBKey& key, PutMode putMode, WebIDBCallbacks* callbacks, const WebIDBTransaction& transaction, const WebVector<long long>& webIndexIds, const WebVector<WebIndexKeys>& webIndexKeys) { ASSERT(webIndexIds.size() == webIndexKeys.size()); @@ -92,22 +75,6 @@ void WebIDBObjectStoreImpl::put(const WebSerializedScriptValue& value, const Web m_objectStore->put(value, key, static_cast<IDBObjectStoreBackendInterface::PutMode>(putMode), IDBCallbacksProxy::create(adoptPtr(callbacks)), transaction.getIDBTransactionBackendInterface(), indexIds, indexKeys); } -void WebIDBObjectStoreImpl::setIndexKeys(const WebIDBKey& primaryKey, const WebVector<WebString>& webIndexNames, const WebVector<WebIndexKeys>& webIndexKeys, const WebIDBTransaction& transaction) -{ - ASSERT(webIndexNames.size() == webIndexKeys.size()); - Vector<String> indexNames(webIndexNames.size()); - Vector<IDBObjectStoreBackendInterface::IndexKeys> indexKeys(webIndexKeys.size()); - - for (size_t i = 0; i < webIndexNames.size(); ++i) { - indexNames[i] = webIndexNames[i]; - Vector<RefPtr<IDBKey> > indexKeyList(webIndexKeys[i].size()); - for (size_t j = 0; j < webIndexKeys[i].size(); ++j) - indexKeyList[j] = webIndexKeys[i][j]; - indexKeys[i] = indexKeyList; - } - m_objectStore->setIndexKeys(primaryKey, indexNames, indexKeys, transaction.getIDBTransactionBackendInterface()); -} - void WebIDBObjectStoreImpl::setIndexKeys(const WebIDBKey& primaryKey, const WebVector<long long>& webIndexIds, const WebVector<WebIndexKeys>& webIndexKeys, const WebIDBTransaction& transaction) { ASSERT(webIndexIds.size() == webIndexKeys.size()); @@ -124,14 +91,6 @@ void WebIDBObjectStoreImpl::setIndexKeys(const WebIDBKey& primaryKey, const WebV m_objectStore->setIndexKeys(primaryKey, indexIds, indexKeys, transaction.getIDBTransactionBackendInterface()); } -void WebIDBObjectStoreImpl::setIndexesReady(const WebVector<WebString>& webIndexNames, const WebIDBTransaction& transaction) -{ - Vector<String> indexNames(webIndexNames.size()); - for (size_t i = 0; i < webIndexNames.size(); ++i) - indexNames[i] = webIndexNames[i]; - m_objectStore->setIndexesReady(indexNames, transaction.getIDBTransactionBackendInterface()); -} - void WebIDBObjectStoreImpl::setIndexesReady(const WebVector<long long>& webIndexNames, const WebIDBTransaction& transaction) { Vector<int64_t> indexIds(webIndexNames.size()); @@ -158,14 +117,6 @@ WebIDBIndex* WebIDBObjectStoreImpl::createIndex(long long id, const WebString& n return new WebIDBIndexImpl(index); } -WebIDBIndex* WebIDBObjectStoreImpl::index(const WebString& name, WebExceptionCode& ec) -{ - RefPtr<IDBIndexBackendInterface> index = m_objectStore->index(name, ec); - if (!index) - return 0; - return new WebIDBIndexImpl(index); -} - WebIDBIndex* WebIDBObjectStoreImpl::index(long long objectStoreId) { RefPtr<IDBIndexBackendInterface> index = m_objectStore->index(objectStoreId); @@ -174,11 +125,6 @@ WebIDBIndex* WebIDBObjectStoreImpl::index(long long objectStoreId) return new WebIDBIndexImpl(index); } -void WebIDBObjectStoreImpl::deleteIndex(const WebString& name, const WebIDBTransaction& transaction, WebExceptionCode& ec) -{ - m_objectStore->deleteIndex(name, transaction.getIDBTransactionBackendInterface(), ec); -} - void WebIDBObjectStoreImpl::deleteIndex(long long objectStoreId, const WebIDBTransaction& transaction, WebExceptionCode& ec) { m_objectStore->deleteIndex(objectStoreId, transaction.getIDBTransactionBackendInterface(), ec); |