diff options
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); |