-
jorlow@chromium.org authored
Reviewed by Dumitru Daniliuc. Implement IDBObjectStore.get/set/remove https://bugs.webkit.org/show_bug.cgi?id=41250 Modify existing test to provide basic coverage for get/put/remove functions. * storage/indexeddb/script-tests/idb-objectstore-request.js: (test): (openSuccess): (createSuccess): (addSuccess): (getSuccess): (removeSuccess): 2010-06-27 Jeremy Orlow <jorlow@chromium.org> Reviewed by Dumitru Daniliuc. Implement IDBObjectStore.get/set/remove https://bugs.webkit.org/show_bug.cgi?id=41250 Implement these functions in IDBObjectStore, add plumbing, teach IDBAny/Callbacks how to deal with IDBKey, and a few small bits of cleanup. Test: Modified existing test to provide basic coverage. Will add much more extensive layout test coverage in future patches. * Android.derived.jscbindings.mk: * Android.derived.v8bindings.mk: * Android.jscbindings.mk: * Android.mk: * Android.v8bindings.mk: * CMakeLists.txt: * WebCore.gypi: * WebCore.pri: * WebCore.pro: * WebCore.vcproj/WebCore.vcproj: * WebCore.xcodeproj/project.pbxproj: * bindings/js/JSIDBAnyCustom.cpp: (WebCore::toJS): * bindings/v8/custom/V8IDBAnyCustom.cpp: (WebCore::toV8): * storage/IDBAny.cpp: (WebCore::IDBAny::idbKey): (WebCore::IDBAny::set): * storage/IDBAny.h: (WebCore::IDBAny::): * storage/IDBAny.idl: * storage/IDBCallbacks.h: * storage/IDBDatabaseRequest.h: * storage/IDBDatabaseRequest.idl: * storage/IDBKeyRange.h: * storage/IDBObjectStore.h: (WebCore::IDBObjectStore::): * storage/IDBObjectStoreImpl.cpp: (WebCore::IDBObjectStoreImpl::IDBObjectStoreImpl): (WebCore::IDBObjectStoreImpl::get): (WebCore::IDBObjectStoreImpl::set): (WebCore::IDBObjectStoreImpl::remove): * storage/IDBObjectStoreImpl.h: * storage/IDBObjectStoreRequest.cpp: (WebCore::IDBObjectStoreRequest::get): (WebCore::IDBObjectStoreRequest::add): (WebCore::IDBObjectStoreRequest::modify): (WebCore::IDBObjectStoreRequest::addOrModify): (WebCore::IDBObjectStoreRequest::remove): * storage/IDBObjectStoreRequest.h: * storage/IDBObjectStoreRequest.idl: * storage/IDBRequest.cpp: (WebCore::IDBRequest::onSuccess): * storage/IDBRequest.h: 2010-06-27 Jeremy Orlow <jorlow@chromium.org> Reviewed by Dumitru Daniliuc. Implement IDBObjectStore.get/set/remove https://bugs.webkit.org/show_bug.cgi?id=41250 Plumbing for new features, IDBKey, and added support for both invalid (i.e. not serializable) and null (i.e. the RefPtr was 0) to SerializedScriptValue. * WebKit.gyp: * public/WebIDBCallbacks.h: (WebKit::WebIDBCallbacks::onSuccess): * public/WebIDBKey.h: Added. (WebKit::WebIDBKey::WebIDBKey): (WebKit::WebIDBKey::operator=): (WebKit::WebIDBKey::): * public/WebIDBObjectStore.h: (WebKit::WebIDBObjectStore::get): (WebKit::WebIDBObjectStore::set): (WebKit::WebIDBObjectStore::remove): (WebKit::WebIDBObjectStore::createIndex): (WebKit::WebIDBObjectStore::index): (WebKit::WebIDBObjectStore::removeIndex): * public/WebSerializedScriptValue.h: * src/IDBCallbacksProxy.cpp: (WebCore::IDBCallbacksProxy::onSuccess): * src/IDBCallbacksProxy.h: * src/IDBObjectStoreProxy.cpp: (WebCore::IDBObjectStoreProxy::get): (WebCore::IDBObjectStoreProxy::set): (WebCore::IDBObjectStoreProxy::remove): * src/IDBObjectStoreProxy.h: * src/WebIDBCallbacksImpl.cpp: (WebCore::WebIDBCallbacksImpl::onSuccess): * src/WebIDBCallbacksImpl.h: * src/WebIDBKey.cpp: Added. (WebKit::WebIDBKey::~WebIDBKey): (WebKit::WebIDBKey::createNull): (WebKit::WebIDBKey::createInvalid): (WebKit::WebIDBKey::assign): (WebKit::WebIDBKey::assignNull): (WebKit::WebIDBKey::assignInvalid): (WebKit::WebIDBKey::type): (WebKit::WebIDBKey::string): (WebKit::WebIDBKey::number): (WebKit::WebIDBKey::WebIDBKey): (WebKit::WebIDBKey::operator=): (WebKit::WebIDBKey::operator PassRefPtr<IDBKey>): * src/WebIDBObjectStoreImpl.cpp: (WebKit::WebIDBObjectStoreImpl::get): (WebKit::WebIDBObjectStoreImpl::set): (WebKit::WebIDBObjectStoreImpl::remove): * src/WebIDBObjectStoreImpl.h: * src/WebSerializedScriptValue.cpp: (WebKit::WebSerializedScriptValue::createInvalid): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@63064 268f45cc-cd09-0410-ab3c-d52691b4dbfc
a815bc8c