From 470286ecfe79d59df14944e5b5d34630fc739391 Mon Sep 17 00:00:00 2001 From: Simon Hausmann Date: Thu, 22 Nov 2012 09:09:45 +0100 Subject: Imported WebKit commit e89504fa9195b2063b2530961d4b73dd08de3242 (http://svn.webkit.org/repository/webkit/trunk@135485) Change-Id: I03774e5ac79721c13ffa30d152537a74d0b12e66 Reviewed-by: Simon Hausmann --- .../chromium/src/IDBObjectStoreBackendProxy.cpp | 55 ---------------------- 1 file changed, 55 deletions(-) (limited to 'Source/WebKit/chromium/src/IDBObjectStoreBackendProxy.cpp') diff --git a/Source/WebKit/chromium/src/IDBObjectStoreBackendProxy.cpp b/Source/WebKit/chromium/src/IDBObjectStoreBackendProxy.cpp index 6a0d02772..8e89deb03 100755 --- a/Source/WebKit/chromium/src/IDBObjectStoreBackendProxy.cpp +++ b/Source/WebKit/chromium/src/IDBObjectStoreBackendProxy.cpp @@ -67,16 +67,6 @@ void IDBObjectStoreBackendProxy::get(PassRefPtr keyRange, PassRefPt m_webIDBObjectStore->get(keyRange, new WebIDBCallbacksImpl(callbacks), *transactionProxy->getWebIDBTransaction(), ec); } -void IDBObjectStoreBackendProxy::putWithIndexKeys(PassRefPtr value, PassRefPtr key, PutMode putMode, PassRefPtr callbacks, IDBTransactionBackendInterface* transaction, const Vector& indexNames, const Vector& indexKeys, ExceptionCode& ec) -{ - // The transaction pointer is guaranteed to be a pointer to a proxy object as, in the renderer, - // all implementations of IDB interfaces are proxy objects. - IDBTransactionBackendProxy* transactionProxy = static_cast(transaction); - WebVector webIndexNames(indexNames); - WebVector webIndexKeys(indexKeys); - m_webIDBObjectStore->putWithIndexKeys(value, key, static_cast(putMode), new WebIDBCallbacksImpl(callbacks), *transactionProxy->getWebIDBTransaction(), webIndexNames, webIndexKeys, ec); -} - void IDBObjectStoreBackendProxy::put(PassRefPtr value, PassRefPtr key, PutMode putMode, PassRefPtr callbacks, IDBTransactionBackendInterface* transaction, const Vector& indexIds, const Vector& indexKeys) { // The transaction pointer is guaranteed to be a pointer to a proxy object as, in the renderer, @@ -85,16 +75,6 @@ void IDBObjectStoreBackendProxy::put(PassRefPtr value, Pa m_webIDBObjectStore->put(value, key, static_cast(putMode), new WebIDBCallbacksImpl(callbacks), *transactionProxy->getWebIDBTransaction(), indexIds, indexKeys); } -void IDBObjectStoreBackendProxy::setIndexKeys(PassRefPtr prpPrimaryKey, const Vector& indexNames, const Vector& indexKeys, IDBTransactionBackendInterface* transaction) -{ - // The transaction pointer is guaranteed to be a pointer to a proxy object as, in the renderer, - // all implementations of IDB interfaces are proxy objects. - IDBTransactionBackendProxy* transactionProxy = static_cast(transaction); - WebVector webIndexNames(indexNames); - WebVector webIndexKeys(indexKeys); - m_webIDBObjectStore->setIndexKeys(prpPrimaryKey, webIndexNames, webIndexKeys, *transactionProxy->getWebIDBTransaction()); -} - void IDBObjectStoreBackendProxy::setIndexKeys(PassRefPtr prpPrimaryKey, const Vector& indexIds, const Vector& indexKeys, IDBTransactionBackendInterface* transaction) { // The transaction pointer is guaranteed to be a pointer to a proxy object as, in the renderer, @@ -130,25 +110,6 @@ PassRefPtr IDBObjectStoreBackendProxy::createIndex(int return IDBIndexBackendProxy::create(index.release()); } -PassRefPtr IDBObjectStoreBackendProxy::createIndex(const String& name, const IDBKeyPath& keyPath, bool unique, bool multiEntry, IDBTransactionBackendInterface* transaction, ExceptionCode& ec) -{ - // The transaction pointer is guaranteed to be a pointer to a proxy object as, in the renderer, - // all implementations of IDB interfaces are proxy objects. - IDBTransactionBackendProxy* transactionProxy = static_cast(transaction); - OwnPtr index = adoptPtr(m_webIDBObjectStore->createIndex(name, keyPath, unique, multiEntry, *transactionProxy->getWebIDBTransaction(), ec)); - if (!index) - return 0; - return IDBIndexBackendProxy::create(index.release()); -} - -void IDBObjectStoreBackendProxy::setIndexesReady(const Vector& indexNames, IDBTransactionBackendInterface* transaction) -{ - // The transaction pointer is guaranteed to be a pointer to a proxy object as, in the renderer, - // all implementations of IDB interfaces are proxy objects. - IDBTransactionBackendProxy* transactionProxy = static_cast(transaction); - m_webIDBObjectStore->setIndexesReady(WebVector(indexNames), *transactionProxy->getWebIDBTransaction()); -} - void IDBObjectStoreBackendProxy::setIndexesReady(const Vector& indexIds, IDBTransactionBackendInterface* transaction) { // The transaction pointer is guaranteed to be a pointer to a proxy object as, in the renderer, @@ -157,14 +118,6 @@ void IDBObjectStoreBackendProxy::setIndexesReady(const Vector& indexIds m_webIDBObjectStore->setIndexesReady(WebVector(indexIds), *transactionProxy->getWebIDBTransaction()); } -PassRefPtr IDBObjectStoreBackendProxy::index(const String& name, ExceptionCode& ec) -{ - OwnPtr index = adoptPtr(m_webIDBObjectStore->index(name, ec)); - if (!index) - return 0; - return IDBIndexBackendProxy::create(index.release()); -} - PassRefPtr IDBObjectStoreBackendProxy::index(int64_t indexId) { OwnPtr index = adoptPtr(m_webIDBObjectStore->index(indexId)); @@ -173,14 +126,6 @@ PassRefPtr IDBObjectStoreBackendProxy::index(int64_t i return IDBIndexBackendProxy::create(index.release()); } -void IDBObjectStoreBackendProxy::deleteIndex(const String& name, IDBTransactionBackendInterface* transaction, ExceptionCode& ec) -{ - // The transaction pointer is guaranteed to be a pointer to a proxy object as, in the renderer, - // all implementations of IDB interfaces are proxy objects. - IDBTransactionBackendProxy* transactionProxy = static_cast(transaction); - m_webIDBObjectStore->deleteIndex(name, *transactionProxy->getWebIDBTransaction(), ec); -} - void IDBObjectStoreBackendProxy::deleteIndex(const int64_t indexId, IDBTransactionBackendInterface* transaction, ExceptionCode& ec) { // The transaction pointer is guaranteed to be a pointer to a proxy object as, in the renderer, -- cgit v1.2.1