Changeset 64577 in webkit
- Timestamp:
- Aug 3, 2010 12:20:09 PM (14 years ago)
- Location:
- trunk
- Files:
-
- 1 deleted
- 37 edited
- 1 copied
- 4 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/Android.derived.jscbindings.mk
r64543 r64577 371 371 $(intermediates)/storage/JSIDBKey.h \ 372 372 $(intermediates)/storage/JSIDBKeyRange.h \ 373 $(intermediates)/storage/JSIDBObjectStore.h \ 373 374 $(intermediates)/storage/JSIDBRequest.h \ 374 375 $(intermediates)/storage/JSIDBSuccessEvent.h -
trunk/WebCore/Android.derived.v8bindings.mk
r64543 r64577 352 352 $(intermediates)/bindings/V8IDBKey.h \ 353 353 $(intermediates)/bindings/V8IDBKeyRange.h \ 354 $(intermediates)/bindings/V8IDBObjectStore.h \ 354 355 $(intermediates)/bindings/V8IDBRequest.h \ 355 356 $(intermediates)/bindings/V8IDBSuccessEvent.h -
trunk/WebCore/Android.mk
r64543 r64577 752 752 storage/IDBKey.cpp \ 753 753 storage/IDBKeyRange.cpp \ 754 storage/IDBObjectStore Impl.cpp \755 storage/IDBObjectStore Request.cpp \754 storage/IDBObjectStore.cpp \ 755 storage/IDBObjectStoreBackendImpl.cpp \ 756 756 storage/IDBRequest.cpp \ 757 757 storage/IDBSuccessEvent.cpp \ -
trunk/WebCore/CMakeLists.txt
r64543 r64577 344 344 storage/IDBKey.idl 345 345 storage/IDBKeyRange.idl 346 storage/IDBObjectStore Request.idl346 storage/IDBObjectStore.idl 347 347 storage/IDBRequest.idl 348 348 storage/IDBSuccessEvent.idl … … 1446 1446 storage/IDBKeyRange.cpp 1447 1447 storage/IDBRequest.cpp 1448 storage/IDBObjectStore Impl.cpp1449 storage/IDBObjectStore Request.cpp1448 storage/IDBObjectStore.cpp 1449 storage/IDBObjectStoreBackendImpl.cpp 1450 1450 storage/IDBSuccessEvent.cpp 1451 1451 storage/IDBFactory.cpp -
trunk/WebCore/ChangeLog
r64573 r64577 1 2010-08-03 Andrei Popescu <andreip@google.com> 2 3 Reviewed by Jeremy Orlow. 4 5 [IndexedDB] IDBObjectStoreRequest should be called IDBObjectStore 6 https://bugs.webkit.org/show_bug.cgi?id=43420 7 8 Renaming IDBObjectStoreRequest to IDBObjectStore. 9 10 No new tests needed, just refactoring. 11 12 * Android.derived.jscbindings.mk: 13 * Android.derived.v8bindings.mk: 14 * Android.mk: 15 * CMakeLists.txt: 16 * DerivedSources.cpp: 17 * DerivedSources.make: 18 * GNUmakefile.am: 19 * WebCore.gypi: 20 * WebCore.pri: 21 * WebCore.pro: 22 * WebCore.vcproj/WebCore.vcproj: 23 * WebCore.xcodeproj/project.pbxproj: 24 * bindings/js/JSIDBAnyCustom.cpp: 25 (WebCore::toJS): 26 * bindings/v8/custom/V8IDBAnyCustom.cpp: 27 (WebCore::toV8): 28 * storage/IDBAny.cpp: 29 (WebCore::IDBAny::idbObjectStore): 30 (WebCore::IDBAny::set): 31 * storage/IDBAny.h: 32 (WebCore::IDBAny::): 33 * storage/IDBCallbacks.h: 34 * storage/IDBDatabase.cpp: 35 (WebCore::IDBDatabase::objectStore): 36 * storage/IDBDatabase.h: 37 * storage/IDBDatabaseBackendImpl.cpp: 38 (WebCore::IDBDatabaseBackendImpl::createObjectStore): 39 (WebCore::IDBDatabaseBackendImpl::objectStore): 40 * storage/IDBDatabaseBackendImpl.h: 41 * storage/IDBDatabaseBackendInterface.h: 42 * storage/IDBObjectStore.cpp: Added. 43 (WebCore::IDBObjectStore::IDBObjectStore): 44 (WebCore::IDBObjectStore::name): 45 (WebCore::IDBObjectStore::keyPath): 46 (WebCore::IDBObjectStore::indexNames): 47 (WebCore::IDBObjectStore::get): 48 (WebCore::IDBObjectStore::add): 49 (WebCore::IDBObjectStore::put): 50 (WebCore::IDBObjectStore::remove): 51 (WebCore::IDBObjectStore::createIndex): 52 (WebCore::IDBObjectStore::index): 53 (WebCore::IDBObjectStore::removeIndex): 54 * storage/IDBObjectStore.h: 55 (WebCore::IDBObjectStore::create): 56 (WebCore::IDBObjectStore::~IDBObjectStore): 57 * storage/IDBObjectStore.idl: Added. 58 * storage/IDBObjectStoreBackendImpl.cpp: Added. 59 (WebCore::IDBObjectStoreBackendImpl::~IDBObjectStoreBackendImpl): 60 (WebCore::IDBObjectStoreBackendImpl::IDBObjectStoreBackendImpl): 61 (WebCore::IDBObjectStoreBackendImpl::indexNames): 62 (WebCore::IDBObjectStoreBackendImpl::get): 63 (WebCore::IDBObjectStoreBackendImpl::put): 64 (WebCore::IDBObjectStoreBackendImpl::remove): 65 (WebCore::IDBObjectStoreBackendImpl::createIndex): 66 (WebCore::IDBObjectStoreBackendImpl::index): 67 (WebCore::IDBObjectStoreBackendImpl::removeIndex): 68 * storage/IDBObjectStoreBackendImpl.h: Added. 69 (WebCore::IDBObjectStoreBackendImpl::create): 70 (WebCore::IDBObjectStoreBackendImpl::name): 71 (WebCore::IDBObjectStoreBackendImpl::keyPath): 72 * storage/IDBObjectStoreBackendInterface.h: Added. 73 (WebCore::IDBObjectStoreBackendInterface::~IDBObjectStoreBackendInterface): 74 * storage/IDBObjectStoreImpl.cpp: Removed. 75 * storage/IDBObjectStoreImpl.h: Removed. 76 * storage/IDBObjectStoreRequest.cpp: Removed. 77 * storage/IDBObjectStoreRequest.h: Removed. 78 * storage/IDBObjectStoreRequest.idl: Removed. 79 * storage/IDBRequest.cpp: 80 (WebCore::IDBRequest::onSuccess): 81 * storage/IDBRequest.h: 82 1 83 2010-08-03 Martin Robinson <mrobinson@igalia.com> 2 84 -
trunk/WebCore/DerivedSources.cpp
r64543 r64577 186 186 #include "JSIDBKey.cpp" 187 187 #include "JSIDBKeyRange.cpp" 188 #include "JSIDBObjectStore Request.cpp"188 #include "JSIDBObjectStore.cpp" 189 189 #include "JSIDBRequest.cpp" 190 190 #include "JSIDBSuccessEvent.cpp" -
trunk/WebCore/DerivedSources.make
r64543 r64577 236 236 IDBKey \ 237 237 IDBKeyRange \ 238 IDBObjectStore Request\238 IDBObjectStore \ 239 239 IDBRequest \ 240 240 IDBSuccessEvent \ -
trunk/WebCore/GNUmakefile.am
r64543 r64577 2850 2850 DerivedSources/WebCore/JSIDBKeyRange.cpp \ 2851 2851 DerivedSources/WebCore/JSIDBKeyRange.h \ 2852 DerivedSources/WebCore/JSIDBObjectStore Request.cpp \2853 DerivedSources/WebCore/JSIDBObjectStore Request.h \2852 DerivedSources/WebCore/JSIDBObjectStore.cpp \ 2853 DerivedSources/WebCore/JSIDBObjectStore.h \ 2854 2854 DerivedSources/WebCore/JSIDBRequest.cpp \ 2855 2855 DerivedSources/WebCore/JSIDBRequest.h \ … … 2879 2879 WebCore/storage/IDBKeyRange.cpp \ 2880 2880 WebCore/storage/IDBKeyRange.h \ 2881 WebCore/storage/IDBObjectStore.cpp \ 2881 2882 WebCore/storage/IDBObjectStore.h \ 2882 WebCore/storage/IDBObjectStoreImpl.cpp \ 2883 WebCore/storage/IDBObjectStoreImpl.h \ 2884 WebCore/storage/IDBObjectStoreRequest.cpp \ 2885 WebCore/storage/IDBObjectStoreRequest.h \ 2883 WebCore/storage/IDBObjectStoreBackendImpl.cpp \ 2884 WebCore/storage/IDBObjectStoreBackendImpl.h \ 2885 WebCore/storage/IDBObjectStoreBackendInterface.h \ 2886 2886 WebCore/storage/IDBRequest.cpp \ 2887 2887 WebCore/storage/IDBRequest.h \ -
trunk/WebCore/WebCore.gypi
r64544 r64577 247 247 'storage/IDBKey.idl', 248 248 'storage/IDBKeyRange.idl', 249 'storage/IDBObjectStore Request.idl',249 'storage/IDBObjectStore.idl', 250 250 'storage/IDBRequest.idl', 251 251 'storage/IDBSuccessEvent.idl', … … 3525 3525 'storage/IDBKeyRange.h', 3526 3526 'storage/IDBKeyTree.h', 3527 'storage/IDBObjectStore.cpp', 3527 3528 'storage/IDBObjectStore.h', 3528 'storage/IDBObjectStoreImpl.cpp', 3529 'storage/IDBObjectStoreImpl.h', 3530 'storage/IDBObjectStoreRequest.cpp', 3531 'storage/IDBObjectStoreRequest.h', 3529 'storage/IDBObjectStoreBackendImpl.cpp', 3530 'storage/IDBObjectStoreBackendImpl.h', 3531 'storage/IDBObjectStoreBackendInterface.h', 3532 3532 'storage/IDBRequest.cpp', 3533 3533 'storage/IDBRequest.h', -
trunk/WebCore/WebCore.pri
r64543 r64577 492 492 storage/IDBKey.idl \ 493 493 storage/IDBKeyRange.idl \ 494 storage/IDBObjectStore Request.idl \494 storage/IDBObjectStore.idl \ 495 495 storage/IDBRequest.idl \ 496 496 storage/IDBSuccessEvent.idl \ -
trunk/WebCore/WebCore.pro
r64543 r64577 2442 2442 storage/IDBKeyRange.h \ 2443 2443 storage/IDBObjectStore.h \ 2444 storage/IDBObjectStore Impl.h \2445 storage/IDBObjectStore Request.h \2444 storage/IDBObjectStoreBackendImpl.h \ 2445 storage/IDBObjectStoreBackendInterface.h \ 2446 2446 storage/IDBRequest.h \ 2447 2447 storage/IDBSuccessEvent.h … … 2463 2463 storage/IDBKey.cpp \ 2464 2464 storage/IDBKeyRange.cpp \ 2465 storage/IDBObjectStore Impl.cpp \2466 storage/IDBObjectStore Request.cpp \2465 storage/IDBObjectStore.cpp \ 2466 storage/IDBObjectStoreBackendImpl.cpp \ 2467 2467 storage/IDBRequest.cpp \ 2468 2468 storage/IDBSuccessEvent.cpp -
trunk/WebCore/WebCore.vcproj/WebCore.vcproj
r64543 r64577 45013 45013 </File> 45014 45014 <File 45015 RelativePath="$(WebKitOutputDir)\obj\$(ProjectName)\DerivedSources\JSIDBObjectStore Request.cpp"45015 RelativePath="$(WebKitOutputDir)\obj\$(ProjectName)\DerivedSources\JSIDBObjectStore.cpp" 45016 45016 > 45017 45017 <FileConfiguration … … 45065 45065 </File> 45066 45066 <File 45067 RelativePath="$(WebKitOutputDir)\obj\$(ProjectName)\DerivedSources\JSIDBObjectStore Request.cpp"45067 RelativePath="$(WebKitOutputDir)\obj\$(ProjectName)\DerivedSources\JSIDBObjectStore.cpp" 45068 45068 > 45069 45069 <FileConfiguration … … 45117 45117 </File> 45118 45118 <File 45119 RelativePath="$(WebKitOutputDir)\obj\$(ProjectName)\DerivedSources\JSIDBObjectStore Request.h"45119 RelativePath="$(WebKitOutputDir)\obj\$(ProjectName)\DerivedSources\JSIDBObjectStore.h" 45120 45120 > 45121 45121 </File> … … 50218 50218 </File> 50219 50219 <File 50220 RelativePath="..\storage\IDBObjectStore.cpp" 50221 > 50222 </File> 50223 <File 50220 50224 RelativePath="..\storage\IDBObjectStore.h" 50221 50225 > 50222 50226 </File> 50223 50227 <File 50224 RelativePath="..\storage\IDBObjectStoreImpl.cpp" 50225 > 50226 </File> 50227 <File 50228 RelativePath="..\storage\IDBObjectStoreImpl.h" 50229 > 50230 </File> 50231 <File 50232 RelativePath="..\storage\IDBObjectStoreRequest.cpp" 50233 > 50234 </File> 50235 <File 50236 RelativePath="..\storage\IDBObjectStoreRequest.h" 50228 RelativePath="..\storage\IDBObjectStoreBackendImpl.cpp" 50229 > 50230 </File> 50231 <File 50232 RelativePath="..\storage\IDBObjectStoreBackendImpl.h" 50233 > 50234 </File> 50235 <File 50236 RelativePath="..\storage\IDBObjectStoreBackendInterface.h" 50237 50237 > 50238 50238 </File> -
trunk/WebCore/WebCore.xcodeproj/project.pbxproj
r64543 r64577 4954 4954 C585A68C11D4FB08004C3E4B /* JSIDBKeyRange.cpp in Sources */ = {isa = PBXBuildFile; fileRef = C585A67411D4FB07004C3E4B /* JSIDBKeyRange.cpp */; }; 4955 4955 C585A68D11D4FB08004C3E4B /* JSIDBKeyRange.h in Headers */ = {isa = PBXBuildFile; fileRef = C585A67511D4FB07004C3E4B /* JSIDBKeyRange.h */; }; 4956 C585A68E11D4FB08004C3E4B /* JSIDBObjectStore Request.cpp in Sources */ = {isa = PBXBuildFile; fileRef = C585A67611D4FB07004C3E4B /* JSIDBObjectStoreRequest.cpp */; };4957 C585A68F11D4FB08004C3E4B /* JSIDBObjectStore Request.h in Headers */ = {isa = PBXBuildFile; fileRef = C585A67711D4FB07004C3E4B /* JSIDBObjectStoreRequest.h */; };4956 C585A68E11D4FB08004C3E4B /* JSIDBObjectStore.cpp in Sources */ = {isa = PBXBuildFile; fileRef = C585A67611D4FB07004C3E4B /* JSIDBObjectStore.cpp */; }; 4957 C585A68F11D4FB08004C3E4B /* JSIDBObjectStore.h in Headers */ = {isa = PBXBuildFile; fileRef = C585A67711D4FB07004C3E4B /* JSIDBObjectStore.h */; }; 4958 4958 C585A69011D4FB08004C3E4B /* JSIDBRequest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = C585A67811D4FB07004C3E4B /* JSIDBRequest.cpp */; }; 4959 4959 C585A69111D4FB08004C3E4B /* JSIDBRequest.h in Headers */ = {isa = PBXBuildFile; fileRef = C585A67911D4FB07004C3E4B /* JSIDBRequest.h */; }; … … 4979 4979 C585A6EC11D4FB3D004C3E4B /* IDBKeyTree.h in Headers */ = {isa = PBXBuildFile; fileRef = C585A6B811D4FB3D004C3E4B /* IDBKeyTree.h */; }; 4980 4980 C585A6ED11D4FB3D004C3E4B /* IDBObjectStore.h in Headers */ = {isa = PBXBuildFile; fileRef = C585A6B911D4FB3D004C3E4B /* IDBObjectStore.h */; }; 4981 C585A6 EE11D4FB3D004C3E4B /* IDBObjectStoreImpl.cpp in Sources */ = {isa = PBXBuildFile; fileRef = C585A6BA11D4FB3D004C3E4B /* IDBObjectStoreImpl.cpp */; };4982 C585A6E F11D4FB3D004C3E4B /* IDBObjectStoreImpl.h in Headers */ = {isa = PBXBuildFile; fileRef = C585A6BB11D4FB3D004C3E4B /* IDBObjectStoreImpl.h*/; };4983 C585A6 F011D4FB3D004C3E4B /* IDBObjectStoreRequest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = C585A6BC11D4FB3D004C3E4B /* IDBObjectStoreRequest.cpp*/; };4984 C585A6F111D4FB3D004C3E4B /* IDBObjectStore Request.h in Headers */ = {isa = PBXBuildFile; fileRef = C585A6BD11D4FB3D004C3E4B /* IDBObjectStoreRequest.h */; };4981 C585A6F011D4FB3D004C3E4B /* IDBObjectStore.cpp in Sources */ = {isa = PBXBuildFile; fileRef = C585A6BC11D4FB3D004C3E4B /* IDBObjectStore.cpp */; }; 4982 C585A6EE11D4FB3D004C3E4B /* IDBObjectStoreBackendImpl.cpp in Sources */ = {isa = PBXBuildFile; fileRef = C585A6BA11D4FB3D004C3E4B /* IDBObjectStoreBackendImpl.cpp */; }; 4983 C585A6EF11D4FB3D004C3E4B /* IDBObjectStoreBackendImpl.h in Headers */ = {isa = PBXBuildFile; fileRef = C585A6BB11D4FB3D004C3E4B /* IDBObjectStoreBackendImpl.h */; }; 4984 C585A6F111D4FB3D004C3E4B /* IDBObjectStoreBackendInterface.h in Headers */ = {isa = PBXBuildFile; fileRef = C585A6BD11D4FB3D004C3E4B /* IDBObjectStoreBackendInterface.h */; }; 4985 4985 C585A6F311D4FB3D004C3E4B /* IDBRequest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = C585A6BF11D4FB3D004C3E4B /* IDBRequest.cpp */; }; 4986 4986 C585A6F411D4FB3D004C3E4B /* IDBRequest.h in Headers */ = {isa = PBXBuildFile; fileRef = C585A6C011D4FB3D004C3E4B /* IDBRequest.h */; }; … … 10657 10657 C585A67411D4FB07004C3E4B /* JSIDBKeyRange.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSIDBKeyRange.cpp; sourceTree = "<group>"; }; 10658 10658 C585A67511D4FB07004C3E4B /* JSIDBKeyRange.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JSIDBKeyRange.h; sourceTree = "<group>"; }; 10659 C585A67611D4FB07004C3E4B /* JSIDBObjectStore Request.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSIDBObjectStoreRequest.cpp; sourceTree = "<group>"; };10660 C585A67711D4FB07004C3E4B /* JSIDBObjectStore Request.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JSIDBObjectStoreRequest.h; sourceTree = "<group>"; };10659 C585A67611D4FB07004C3E4B /* JSIDBObjectStore.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSIDBObjectStore.cpp; sourceTree = "<group>"; }; 10660 C585A67711D4FB07004C3E4B /* JSIDBObjectStore.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JSIDBObjectStore.h; sourceTree = "<group>"; }; 10661 10661 C585A67811D4FB07004C3E4B /* JSIDBRequest.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSIDBRequest.cpp; sourceTree = "<group>"; }; 10662 10662 C585A67911D4FB07004C3E4B /* JSIDBRequest.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JSIDBRequest.h; sourceTree = "<group>"; }; … … 10690 10690 C585A6B711D4FB3D004C3E4B /* IDBKeyRange.idl */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = IDBKeyRange.idl; sourceTree = "<group>"; }; 10691 10691 C585A6B811D4FB3D004C3E4B /* IDBKeyTree.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = IDBKeyTree.h; sourceTree = "<group>"; }; 10692 C585A6BC11D4FB3D004C3E4B /* IDBObjectStore.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = IDBObjectStore.cpp; sourceTree = "<group>"; }; 10692 10693 C585A6B911D4FB3D004C3E4B /* IDBObjectStore.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = IDBObjectStore.h; sourceTree = "<group>"; }; 10693 C585A6BA11D4FB3D004C3E4B /* IDBObjectStoreImpl.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = IDBObjectStoreImpl.cpp; sourceTree = "<group>"; }; 10694 C585A6BB11D4FB3D004C3E4B /* IDBObjectStoreImpl.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = IDBObjectStoreImpl.h; sourceTree = "<group>"; }; 10695 C585A6BC11D4FB3D004C3E4B /* IDBObjectStoreRequest.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = IDBObjectStoreRequest.cpp; sourceTree = "<group>"; }; 10696 C585A6BD11D4FB3D004C3E4B /* IDBObjectStoreRequest.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = IDBObjectStoreRequest.h; sourceTree = "<group>"; }; 10697 C585A6BE11D4FB3D004C3E4B /* IDBObjectStoreRequest.idl */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = IDBObjectStoreRequest.idl; sourceTree = "<group>"; }; 10694 C585A6BE11D4FB3D004C3E4B /* IDBObjectStore.idl */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = IDBObjectStore.idl; sourceTree = "<group>"; }; 10695 C585A6BA11D4FB3D004C3E4B /* IDBObjectStoreBackendImpl.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = IDBObjectStoreBackendImpl.cpp; sourceTree = "<group>"; }; 10696 C585A6BB11D4FB3D004C3E4B /* IDBObjectStoreBackendImpl.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = IDBObjectStoreBackendImpl.h; sourceTree = "<group>"; }; 10697 C585A6BD11D4FB3D004C3E4B /* IDBObjectStoreBackendInterface.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = IDBObjectStoreBackendInterface.h; sourceTree = "<group>"; }; 10698 10698 C585A6BF11D4FB3D004C3E4B /* IDBRequest.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = IDBRequest.cpp; sourceTree = "<group>"; }; 10699 10699 C585A6C011D4FB3D004C3E4B /* IDBRequest.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = IDBRequest.h; sourceTree = "<group>"; }; … … 11426 11426 C585A6B711D4FB3D004C3E4B /* IDBKeyRange.idl */, 11427 11427 C585A6B811D4FB3D004C3E4B /* IDBKeyTree.h */, 11428 C585A6BC11D4FB3D004C3E4B /* IDBObjectStore.cpp */, 11428 11429 C585A6B911D4FB3D004C3E4B /* IDBObjectStore.h */, 11429 C585A6BA11D4FB3D004C3E4B /* IDBObjectStoreImpl.cpp */, 11430 C585A6BB11D4FB3D004C3E4B /* IDBObjectStoreImpl.h */, 11431 C585A6BC11D4FB3D004C3E4B /* IDBObjectStoreRequest.cpp */, 11432 C585A6BD11D4FB3D004C3E4B /* IDBObjectStoreRequest.h */, 11433 C585A6BE11D4FB3D004C3E4B /* IDBObjectStoreRequest.idl */, 11430 C585A6BE11D4FB3D004C3E4B /* IDBObjectStore.idl */, 11431 C585A6BA11D4FB3D004C3E4B /* IDBObjectStoreBackendImpl.cpp */, 11432 C585A6BB11D4FB3D004C3E4B /* IDBObjectStoreBackendImpl.h */, 11433 C585A6BD11D4FB3D004C3E4B /* IDBObjectStoreBackendInterface.h */, 11434 11434 C585A6BF11D4FB3D004C3E4B /* IDBRequest.cpp */, 11435 11435 C585A6C011D4FB3D004C3E4B /* IDBRequest.h */, … … 14870 14870 C585A67411D4FB07004C3E4B /* JSIDBKeyRange.cpp */, 14871 14871 C585A67511D4FB07004C3E4B /* JSIDBKeyRange.h */, 14872 C585A67611D4FB07004C3E4B /* JSIDBObjectStore Request.cpp */,14873 C585A67711D4FB07004C3E4B /* JSIDBObjectStore Request.h */,14872 C585A67611D4FB07004C3E4B /* JSIDBObjectStore.cpp */, 14873 C585A67711D4FB07004C3E4B /* JSIDBObjectStore.h */, 14874 14874 C585A67811D4FB07004C3E4B /* JSIDBRequest.cpp */, 14875 14875 C585A67911D4FB07004C3E4B /* JSIDBRequest.h */, … … 18604 18604 C585A6EC11D4FB3D004C3E4B /* IDBKeyTree.h in Headers */, 18605 18605 C585A6ED11D4FB3D004C3E4B /* IDBObjectStore.h in Headers */, 18606 C585A6EF11D4FB3D004C3E4B /* IDBObjectStore Impl.h in Headers */,18607 C585A6F111D4FB3D004C3E4B /* IDBObjectStore Request.h in Headers */,18606 C585A6EF11D4FB3D004C3E4B /* IDBObjectStoreBackendImpl.h in Headers */, 18607 C585A6F111D4FB3D004C3E4B /* IDBObjectStoreBackendInterface.h in Headers */, 18608 18608 C585A6F411D4FB3D004C3E4B /* IDBRequest.h in Headers */, 18609 18609 C585A6F711D4FB3D004C3E4B /* IDBSuccessEvent.h in Headers */, … … 18851 18851 C585A68B11D4FB08004C3E4B /* JSIDBKey.h in Headers */, 18852 18852 C585A68D11D4FB08004C3E4B /* JSIDBKeyRange.h in Headers */, 18853 C585A68F11D4FB08004C3E4B /* JSIDBObjectStore Request.h in Headers */,18853 C585A68F11D4FB08004C3E4B /* JSIDBObjectStore.h in Headers */, 18854 18854 C585A69111D4FB08004C3E4B /* JSIDBRequest.h in Headers */, 18855 18855 C585A69311D4FB08004C3E4B /* JSIDBSuccessEvent.h in Headers */, … … 21033 21033 C585A6E611D4FB3D004C3E4B /* IDBKey.cpp in Sources */, 21034 21034 C585A6E911D4FB3D004C3E4B /* IDBKeyRange.cpp in Sources */, 21035 C585A6 EE11D4FB3D004C3E4B /* IDBObjectStoreImpl.cpp in Sources */,21036 C585A6 F011D4FB3D004C3E4B /* IDBObjectStoreRequest.cpp in Sources */,21035 C585A6F011D4FB3D004C3E4B /* IDBObjectStore.cpp in Sources */, 21036 C585A6EE11D4FB3D004C3E4B /* IDBObjectStoreBackendImpl.cpp in Sources */, 21037 21037 C585A6F311D4FB3D004C3E4B /* IDBRequest.cpp in Sources */, 21038 21038 C585A6F611D4FB3D004C3E4B /* IDBSuccessEvent.cpp in Sources */, … … 21324 21324 C585A65F11D4FAB2004C3E4B /* JSIDBKeyCustom.cpp in Sources */, 21325 21325 C585A68C11D4FB08004C3E4B /* JSIDBKeyRange.cpp in Sources */, 21326 C585A68E11D4FB08004C3E4B /* JSIDBObjectStore Request.cpp in Sources */,21326 C585A68E11D4FB08004C3E4B /* JSIDBObjectStore.cpp in Sources */, 21327 21327 C585A69011D4FB08004C3E4B /* JSIDBRequest.cpp in Sources */, 21328 21328 C585A69211D4FB08004C3E4B /* JSIDBSuccessEvent.cpp in Sources */, -
trunk/WebCore/bindings/js/JSIDBAnyCustom.cpp
r64543 r64577 37 37 #include "IDBIndex.h" 38 38 #include "IDBKey.h" 39 #include "IDBObjectStore Request.h"39 #include "IDBObjectStore.h" 40 40 #include "JSIDBDatabase.h" 41 41 #include "JSIDBFactory.h" 42 42 #include "JSIDBIndex.h" 43 43 #include "JSIDBKey.h" 44 #include "JSIDBObjectStore Request.h"44 #include "JSIDBObjectStore.h" 45 45 #include "SerializedScriptValue.h" 46 46 … … 65 65 case IDBAny::IDBKeyType: 66 66 return toJS(exec, globalObject, idbAny->idbKey()); 67 case IDBAny::IDBObjectStore RequestType:68 return toJS(exec, globalObject, idbAny->idbObjectStore Request());67 case IDBAny::IDBObjectStoreType: 68 return toJS(exec, globalObject, idbAny->idbObjectStore()); 69 69 case IDBAny::IDBFactoryType: 70 70 return toJS(exec, globalObject, idbAny->idbFactory()); -
trunk/WebCore/bindings/v8/custom/V8IDBAnyCustom.cpp
r64543 r64577 37 37 #include "V8IDBIndex.h" 38 38 #include "V8IDBKey.h" 39 #include "V8IDBObjectStore Request.h"39 #include "V8IDBObjectStore.h" 40 40 41 41 namespace WebCore { … … 57 57 case IDBAny::IDBKeyType: 58 58 return toV8(impl->idbKey()); 59 case IDBAny::IDBObjectStore RequestType:60 return toV8(impl->idbObjectStore Request());59 case IDBAny::IDBObjectStoreType: 60 return toV8(impl->idbObjectStore()); 61 61 case IDBAny::IDBFactoryType: 62 62 return toV8(impl->idbFactory()); -
trunk/WebCore/storage/IDBAny.cpp
r64543 r64577 32 32 #include "IDBFactory.h" 33 33 #include "IDBIndex.h" 34 #include "IDBObjectStore Request.h"34 #include "IDBObjectStore.h" 35 35 #include "SerializedScriptValue.h" 36 36 … … 69 69 } 70 70 71 PassRefPtr<IDBObjectStore Request> IDBAny::idbObjectStoreRequest()71 PassRefPtr<IDBObjectStore> IDBAny::idbObjectStore() 72 72 { 73 ASSERT(m_type == IDBObjectStore RequestType);74 return m_idbObjectStore Request;73 ASSERT(m_type == IDBObjectStoreType); 74 return m_idbObjectStore; 75 75 } 76 76 … … 114 114 } 115 115 116 void IDBAny::set(PassRefPtr<IDBObjectStore Request> value)116 void IDBAny::set(PassRefPtr<IDBObjectStore> value) 117 117 { 118 118 ASSERT(m_type == UndefinedType); 119 m_type = IDBObjectStore RequestType;120 m_idbObjectStore Request= value;119 m_type = IDBObjectStoreType; 120 m_idbObjectStore = value; 121 121 } 122 122 -
trunk/WebCore/storage/IDBAny.h
r64543 r64577 38 38 class IDBIndex; 39 39 class IDBKey; 40 class IDBObjectStore Request;40 class IDBObjectStore; 41 41 class IDBFactory; 42 42 class SerializedScriptValue; … … 61 61 IDBIndexType, 62 62 IDBKeyType, 63 IDBObjectStore RequestType,63 IDBObjectStoreType, 64 64 SerializedScriptValueType 65 65 }; … … 71 71 PassRefPtr<IDBIndex> idbIndex(); 72 72 PassRefPtr<IDBKey> idbKey(); 73 PassRefPtr<IDBObjectStore Request> idbObjectStoreRequest();73 PassRefPtr<IDBObjectStore> idbObjectStore(); 74 74 PassRefPtr<SerializedScriptValue> serializedScriptValue(); 75 75 … … 80 80 void set(PassRefPtr<IDBIndex>); 81 81 void set(PassRefPtr<IDBKey>); 82 void set(PassRefPtr<IDBObjectStore Request>);82 void set(PassRefPtr<IDBObjectStore>); 83 83 void set(PassRefPtr<SerializedScriptValue>); 84 84 … … 93 93 RefPtr<IDBIndex> m_idbIndex; 94 94 RefPtr<IDBKey> m_idbKey; 95 RefPtr<IDBObjectStore Request> m_idbObjectStoreRequest;95 RefPtr<IDBObjectStore> m_idbObjectStore; 96 96 RefPtr<SerializedScriptValue> m_serializedScriptValue; 97 97 }; -
trunk/WebCore/storage/IDBCallbacks.h
r64543 r64577 34 34 #include "IDBIndexBackendInterface.h" 35 35 #include "IDBKey.h" 36 #include "IDBObjectStore .h"36 #include "IDBObjectStoreBackendInterface.h" 37 37 #include "SerializedScriptValue.h" 38 38 #include <wtf/RefCounted.h> … … 51 51 virtual void onSuccess(PassRefPtr<IDBIndexBackendInterface>) = 0; 52 52 virtual void onSuccess(PassRefPtr<IDBKey>) = 0; 53 virtual void onSuccess(PassRefPtr<IDBObjectStore >) = 0;53 virtual void onSuccess(PassRefPtr<IDBObjectStoreBackendInterface>) = 0; 54 54 virtual void onSuccess(PassRefPtr<SerializedScriptValue>) = 0; 55 55 }; -
trunk/WebCore/storage/IDBDatabase.cpp
r64543 r64577 29 29 #include "IDBAny.h" 30 30 #include "IDBFactoryBackendInterface.h" 31 #include "IDBObjectStore Request.h"31 #include "IDBObjectStore.h" 32 32 #include "IDBRequest.h" 33 33 #include "ScriptExecutionContext.h" … … 55 55 } 56 56 57 PassRefPtr<IDBObjectStore Request> IDBDatabase::objectStore(const String& name, unsigned short mode)57 PassRefPtr<IDBObjectStore> IDBDatabase::objectStore(const String& name, unsigned short mode) 58 58 { 59 RefPtr<IDBObjectStore > objectStore = m_backend->objectStore(name, mode);59 RefPtr<IDBObjectStoreBackendInterface> objectStore = m_backend->objectStore(name, mode); 60 60 ASSERT(objectStore); // FIXME: If this is null, we should raise a NOT_FOUND_ERR. 61 return IDBObjectStore Request::create(objectStore.release());61 return IDBObjectStore::create(objectStore.release()); 62 62 } 63 63 -
trunk/WebCore/storage/IDBDatabase.h
r64543 r64577 38 38 39 39 class IDBAny; 40 class IDBObjectStore Request;40 class IDBObjectStore; 41 41 class IDBRequest; 42 42 class ScriptExecutionContext; … … 57 57 58 58 PassRefPtr<IDBRequest> createObjectStore(ScriptExecutionContext*, const String& name, const String& keyPath = String(), bool autoIncrement = false); 59 PassRefPtr<IDBObjectStore Request> objectStore(const String& name, unsigned short mode = 0); // FIXME: Use constant rather than 0.59 PassRefPtr<IDBObjectStore> objectStore(const String& name, unsigned short mode = 0); // FIXME: Use constant rather than 0. 60 60 PassRefPtr<IDBRequest> removeObjectStore(ScriptExecutionContext*, const String& name); 61 61 -
trunk/WebCore/storage/IDBDatabase.idl
r64543 r64577 39 39 [CallWith=ScriptExecutionContext] IDBRequest createObjectStore(in DOMString name, in [Optional, ConvertNullToNullString] DOMString keyPath, in [Optional] boolean autoIncrement); 40 40 // FIXME: objectStore needs to be able to raise an IDBDatabaseException. 41 IDBObjectStore RequestobjectStore(in DOMString name, in [Optional] unsigned short mode);41 IDBObjectStore objectStore(in DOMString name, in [Optional] unsigned short mode); 42 42 [CallWith=ScriptExecutionContext] IDBRequest removeObjectStore(in DOMString name); 43 43 }; -
trunk/WebCore/storage/IDBDatabaseBackendImpl.cpp
r64543 r64577 29 29 #include "DOMStringList.h" 30 30 #include "IDBDatabaseException.h" 31 #include "IDBObjectStore Impl.h"31 #include "IDBObjectStoreBackendImpl.h" 32 32 33 33 #if ENABLE(INDEXED_DATABASE) … … 61 61 } 62 62 63 RefPtr<IDBObjectStore > objectStore = IDBObjectStoreImpl::create(name, keyPath, autoIncrement);63 RefPtr<IDBObjectStoreBackendInterface> objectStore = IDBObjectStoreBackendImpl::create(name, keyPath, autoIncrement); 64 64 m_objectStores.set(name, objectStore); 65 65 callbacks->onSuccess(objectStore.release()); 66 66 } 67 67 68 PassRefPtr<IDBObjectStore > IDBDatabaseBackendImpl::objectStore(const String& name, unsigned short mode)68 PassRefPtr<IDBObjectStoreBackendInterface> IDBDatabaseBackendImpl::objectStore(const String& name, unsigned short mode) 69 69 { 70 70 // FIXME: If no transaction is running, this should implicitly start one. -
trunk/WebCore/storage/IDBDatabaseBackendImpl.h
r64543 r64577 51 51 52 52 virtual void createObjectStore(const String& name, const String& keyPath, bool autoIncrement, PassRefPtr<IDBCallbacks>); 53 virtual PassRefPtr<IDBObjectStore > objectStore(const String& name, unsigned short mode);53 virtual PassRefPtr<IDBObjectStoreBackendInterface> objectStore(const String& name, unsigned short mode); 54 54 virtual void removeObjectStore(const String& name, PassRefPtr<IDBCallbacks>); 55 55 … … 61 61 String m_version; 62 62 63 typedef HashMap<String, RefPtr<IDBObjectStore > > ObjectStoreMap;63 typedef HashMap<String, RefPtr<IDBObjectStoreBackendInterface> > ObjectStoreMap; 64 64 ObjectStoreMap m_objectStores; 65 65 }; -
trunk/WebCore/storage/IDBDatabaseBackendInterface.h
r64543 r64577 38 38 class Frame; 39 39 class IDBCallbacks; 40 class IDBObjectStore ;40 class IDBObjectStoreBackendInterface; 41 41 42 42 // This class is shared by IDBDatabase (async) and IDBDatabaseSync (sync). … … 56 56 57 57 virtual void createObjectStore(const String& name, const String& keyPath, bool autoIncrement, PassRefPtr<IDBCallbacks>) = 0; 58 virtual PassRefPtr<IDBObjectStore > objectStore(const String& name, unsigned short mode) = 0;58 virtual PassRefPtr<IDBObjectStoreBackendInterface> objectStore(const String& name, unsigned short mode) = 0; 59 59 virtual void removeObjectStore(const String& name, PassRefPtr<IDBCallbacks>) = 0; 60 60 }; -
trunk/WebCore/storage/IDBObjectStore.cpp
r64573 r64577 25 25 26 26 #include "config.h" 27 #include "IDBObjectStore Request.h"27 #include "IDBObjectStore.h" 28 28 29 29 #include "DOMStringList.h" … … 38 38 namespace WebCore { 39 39 40 IDBObjectStore Request::IDBObjectStoreRequest(PassRefPtr<IDBObjectStore> idbObjectStore)40 IDBObjectStore::IDBObjectStore(PassRefPtr<IDBObjectStoreBackendInterface> idbObjectStore) 41 41 : m_objectStore(idbObjectStore) 42 42 { … … 45 45 } 46 46 47 String IDBObjectStore Request::name() const47 String IDBObjectStore::name() const 48 48 { 49 49 return m_objectStore->name(); 50 50 } 51 51 52 String IDBObjectStore Request::keyPath() const52 String IDBObjectStore::keyPath() const 53 53 { 54 54 return m_objectStore->keyPath(); 55 55 } 56 56 57 PassRefPtr<DOMStringList> IDBObjectStore Request::indexNames() const57 PassRefPtr<DOMStringList> IDBObjectStore::indexNames() const 58 58 { 59 59 return m_objectStore->indexNames(); 60 60 } 61 61 62 PassRefPtr<IDBRequest> IDBObjectStore Request::get(ScriptExecutionContext* context, PassRefPtr<IDBKey> key)62 PassRefPtr<IDBRequest> IDBObjectStore::get(ScriptExecutionContext* context, PassRefPtr<IDBKey> key) 63 63 { 64 64 RefPtr<IDBRequest> request = IDBRequest::create(context, IDBAny::create(this)); … … 67 67 } 68 68 69 PassRefPtr<IDBRequest> IDBObjectStore Request::add(ScriptExecutionContext* context, PassRefPtr<SerializedScriptValue> value, PassRefPtr<IDBKey> key)69 PassRefPtr<IDBRequest> IDBObjectStore::add(ScriptExecutionContext* context, PassRefPtr<SerializedScriptValue> value, PassRefPtr<IDBKey> key) 70 70 { 71 71 RefPtr<IDBRequest> request = IDBRequest::create(context, IDBAny::create(this)); … … 74 74 } 75 75 76 PassRefPtr<IDBRequest> IDBObjectStore Request::put(ScriptExecutionContext* context, PassRefPtr<SerializedScriptValue> value, PassRefPtr<IDBKey> key)76 PassRefPtr<IDBRequest> IDBObjectStore::put(ScriptExecutionContext* context, PassRefPtr<SerializedScriptValue> value, PassRefPtr<IDBKey> key) 77 77 { 78 78 RefPtr<IDBRequest> request = IDBRequest::create(context, IDBAny::create(this)); … … 81 81 } 82 82 83 PassRefPtr<IDBRequest> IDBObjectStore Request::remove(ScriptExecutionContext* context, PassRefPtr<IDBKey> key)83 PassRefPtr<IDBRequest> IDBObjectStore::remove(ScriptExecutionContext* context, PassRefPtr<IDBKey> key) 84 84 { 85 85 RefPtr<IDBRequest> request = IDBRequest::create(context, IDBAny::create(this)); … … 88 88 } 89 89 90 PassRefPtr<IDBRequest> IDBObjectStore Request::createIndex(ScriptExecutionContext* context, const String& name, const String& keyPath, bool unique)90 PassRefPtr<IDBRequest> IDBObjectStore::createIndex(ScriptExecutionContext* context, const String& name, const String& keyPath, bool unique) 91 91 { 92 92 RefPtr<IDBRequest> request = IDBRequest::create(context, IDBAny::create(this)); … … 95 95 } 96 96 97 PassRefPtr<IDBIndex> IDBObjectStore Request::index(const String& name)97 PassRefPtr<IDBIndex> IDBObjectStore::index(const String& name) 98 98 { 99 99 RefPtr<IDBIndexBackendInterface> index = m_objectStore->index(name); … … 102 102 } 103 103 104 PassRefPtr<IDBRequest> IDBObjectStore Request::removeIndex(ScriptExecutionContext* context, const String& name)104 PassRefPtr<IDBRequest> IDBObjectStore::removeIndex(ScriptExecutionContext* context, const String& name) 105 105 { 106 106 RefPtr<IDBRequest> request = IDBRequest::create(context, IDBAny::create(this)); -
trunk/WebCore/storage/IDBObjectStore.h
r64358 r64577 27 27 #define IDBObjectStore_h 28 28 29 #include "IDBObjectStoreBackendInterface.h" 30 #include "IDBRequest.h" 29 31 #include "PlatformString.h" 30 #include <wtf/Threading.h> 32 #include <wtf/PassRefPtr.h> 33 #include <wtf/RefCounted.h> 34 #include <wtf/RefPtr.h> 31 35 32 36 #if ENABLE(INDEXED_DATABASE) … … 35 39 36 40 class DOMStringList; 37 class IDB Callbacks;38 class IDBIndex BackendInterface;41 class IDBAny; 42 class IDBIndexRequest; 39 43 class IDBKey; 40 44 class SerializedScriptValue; 41 45 42 class IDBObjectStore : public ThreadSafeShared<IDBObjectStore> {46 class IDBObjectStore : public RefCounted<IDBObjectStore> { 43 47 public: 44 virtual ~IDBObjectStore() { } 48 static PassRefPtr<IDBObjectStore> create(PassRefPtr<IDBObjectStoreBackendInterface> idbObjectStore) 49 { 50 return adoptRef(new IDBObjectStore(idbObjectStore)); 51 } 52 ~IDBObjectStore() { } 45 53 46 virtual String name() const = 0;47 virtual String keyPath() const = 0;48 virtual PassRefPtr<DOMStringList> indexNames() const = 0;54 String name() const; 55 String keyPath() const; 56 PassRefPtr<DOMStringList> indexNames() const; 49 57 50 virtual void get(PassRefPtr<IDBKey> key, PassRefPtr<IDBCallbacks>) = 0; 51 virtual void put(PassRefPtr<SerializedScriptValue> value, PassRefPtr<IDBKey> key, bool addOnly, PassRefPtr<IDBCallbacks>) = 0; 52 virtual void remove(PassRefPtr<IDBKey> key, PassRefPtr<IDBCallbacks>) = 0; 58 PassRefPtr<IDBRequest> get(ScriptExecutionContext*, PassRefPtr<IDBKey> key); 59 PassRefPtr<IDBRequest> add(ScriptExecutionContext*, PassRefPtr<SerializedScriptValue> value, PassRefPtr<IDBKey> key = 0); 60 PassRefPtr<IDBRequest> put(ScriptExecutionContext*, PassRefPtr<SerializedScriptValue> value, PassRefPtr<IDBKey> key = 0); 61 PassRefPtr<IDBRequest> remove(ScriptExecutionContext*, PassRefPtr<IDBKey> key); 53 62 54 virtual void createIndex(const String& name, const String& keyPath, bool unique, PassRefPtr<IDBCallbacks>) = 0; 55 virtual PassRefPtr<IDBIndexBackendInterface> index(const String& name) = 0; 56 virtual void removeIndex(const String& name, PassRefPtr<IDBCallbacks>) = 0; 63 PassRefPtr<IDBRequest> createIndex(ScriptExecutionContext*, const String& name, const String& keyPath, bool unique = false); 64 PassRefPtr<IDBIndex> index(const String& name); 65 PassRefPtr<IDBRequest> removeIndex(ScriptExecutionContext*, const String& name); 66 67 private: 68 IDBObjectStore(PassRefPtr<IDBObjectStoreBackendInterface>); 69 70 RefPtr<IDBObjectStoreBackendInterface> m_objectStore; 57 71 }; 58 72 -
trunk/WebCore/storage/IDBObjectStore.idl
r64573 r64577 28 28 interface [ 29 29 Conditional=INDEXED_DATABASE 30 ] IDBObjectStore Request{30 ] IDBObjectStore { 31 31 [CallWith=ScriptExecutionContext] IDBRequest get(in IDBKey key); 32 32 // FIXME: Come to concensus re getAll. -
trunk/WebCore/storage/IDBObjectStoreBackendImpl.cpp
r64573 r64577 25 25 26 26 #include "config.h" 27 #include "IDBObjectStore Impl.h"27 #include "IDBObjectStoreBackendImpl.h" 28 28 29 29 #include "DOMStringList.h" … … 38 38 namespace WebCore { 39 39 40 IDBObjectStore Impl::~IDBObjectStoreImpl()40 IDBObjectStoreBackendImpl::~IDBObjectStoreBackendImpl() 41 41 { 42 42 } 43 43 44 IDBObjectStore Impl::IDBObjectStoreImpl(const String& name, const String& keyPath, bool autoIncrement)44 IDBObjectStoreBackendImpl::IDBObjectStoreBackendImpl(const String& name, const String& keyPath, bool autoIncrement) 45 45 : m_name(name) 46 46 , m_keyPath(keyPath) … … 50 50 } 51 51 52 PassRefPtr<DOMStringList> IDBObjectStore Impl::indexNames() const52 PassRefPtr<DOMStringList> IDBObjectStoreBackendImpl::indexNames() const 53 53 { 54 54 RefPtr<DOMStringList> indexNames = DOMStringList::create(); … … 58 58 } 59 59 60 void IDBObjectStore Impl::get(PassRefPtr<IDBKey> key, PassRefPtr<IDBCallbacks> callbacks)60 void IDBObjectStoreBackendImpl::get(PassRefPtr<IDBKey> key, PassRefPtr<IDBCallbacks> callbacks) 61 61 { 62 62 RefPtr<SerializedScriptValue> value = m_tree->get(key.get()); … … 68 68 } 69 69 70 void IDBObjectStore Impl::put(PassRefPtr<SerializedScriptValue> value, PassRefPtr<IDBKey> prpKey, bool addOnly, PassRefPtr<IDBCallbacks> callbacks)70 void IDBObjectStoreBackendImpl::put(PassRefPtr<SerializedScriptValue> value, PassRefPtr<IDBKey> prpKey, bool addOnly, PassRefPtr<IDBCallbacks> callbacks) 71 71 { 72 72 RefPtr<IDBKey> key = prpKey; … … 96 96 } 97 97 98 void IDBObjectStore Impl::remove(PassRefPtr<IDBKey> key, PassRefPtr<IDBCallbacks> callbacks)98 void IDBObjectStoreBackendImpl::remove(PassRefPtr<IDBKey> key, PassRefPtr<IDBCallbacks> callbacks) 99 99 { 100 100 m_tree->remove(key.get()); … … 102 102 } 103 103 104 void IDBObjectStore Impl::createIndex(const String& name, const String& keyPath, bool unique, PassRefPtr<IDBCallbacks> callbacks)104 void IDBObjectStoreBackendImpl::createIndex(const String& name, const String& keyPath, bool unique, PassRefPtr<IDBCallbacks> callbacks) 105 105 { 106 106 if (m_indexes.contains(name)) { … … 115 115 } 116 116 117 PassRefPtr<IDBIndexBackendInterface> IDBObjectStore Impl::index(const String& name)117 PassRefPtr<IDBIndexBackendInterface> IDBObjectStoreBackendImpl::index(const String& name) 118 118 { 119 119 return m_indexes.get(name); 120 120 } 121 121 122 void IDBObjectStore Impl::removeIndex(const String& name, PassRefPtr<IDBCallbacks> callbacks)122 void IDBObjectStoreBackendImpl::removeIndex(const String& name, PassRefPtr<IDBCallbacks> callbacks) 123 123 { 124 124 if (!m_indexes.contains(name)) { -
trunk/WebCore/storage/IDBObjectStoreBackendImpl.h
r64573 r64577 24 24 */ 25 25 26 #ifndef IDBObjectStore Impl_h27 #define IDBObjectStore Impl_h26 #ifndef IDBObjectStoreBackendImpl_h 27 #define IDBObjectStoreBackendImpl_h 28 28 29 #include "IDBObjectStore .h"29 #include "IDBObjectStoreBackendInterface.h" 30 30 #include "StringHash.h" 31 31 #include <wtf/HashMap.h> … … 37 37 template <typename ValueType> class IDBKeyTree; 38 38 39 class IDBObjectStore Impl : public IDBObjectStore {39 class IDBObjectStoreBackendImpl : public IDBObjectStoreBackendInterface { 40 40 public: 41 static PassRefPtr<IDBObjectStore > create(const String& name, const String& keyPath, bool autoIncrement)41 static PassRefPtr<IDBObjectStoreBackendInterface> create(const String& name, const String& keyPath, bool autoIncrement) 42 42 { 43 return adoptRef(new IDBObjectStore Impl(name, keyPath, autoIncrement));43 return adoptRef(new IDBObjectStoreBackendImpl(name, keyPath, autoIncrement)); 44 44 } 45 ~IDBObjectStore Impl();45 ~IDBObjectStoreBackendImpl(); 46 46 47 47 String name() const { return m_name; } … … 58 58 59 59 private: 60 IDBObjectStore Impl(const String& name, const String& keyPath, bool autoIncrement);60 IDBObjectStoreBackendImpl(const String& name, const String& keyPath, bool autoIncrement); 61 61 62 62 String m_name; … … 75 75 #endif 76 76 77 #endif // IDBObjectStore Impl_h77 #endif // IDBObjectStoreBackendImpl_h -
trunk/WebCore/storage/IDBObjectStoreBackendInterface.h
r64573 r64577 24 24 */ 25 25 26 #ifndef IDBObjectStore _h27 #define IDBObjectStore _h26 #ifndef IDBObjectStoreBackendInterface_h 27 #define IDBObjectStoreBackendInterface_h 28 28 29 29 #include "PlatformString.h" … … 40 40 class SerializedScriptValue; 41 41 42 class IDBObjectStore : public ThreadSafeShared<IDBObjectStore> {42 class IDBObjectStoreBackendInterface : public ThreadSafeShared<IDBObjectStoreBackendInterface> { 43 43 public: 44 virtual ~IDBObjectStore () { }44 virtual ~IDBObjectStoreBackendInterface() { } 45 45 46 46 virtual String name() const = 0; … … 61 61 #endif 62 62 63 #endif // IDBObjectStore _h63 #endif // IDBObjectStoreBackendInterface_h 64 64 -
trunk/WebCore/storage/IDBRequest.cpp
r64543 r64577 39 39 #include "IDBIndex.h" 40 40 #include "IDBErrorEvent.h" 41 #include "IDBObjectStore Request.h"41 #include "IDBObjectStore.h" 42 42 #include "IDBSuccessEvent.h" 43 43 #include "ScriptExecutionContext.h" … … 74 74 } 75 75 76 void IDBRequest::onSuccess(PassRefPtr<IDBDatabaseBackendInterface> idbDatabaseBackend)76 void IDBRequest::onSuccess(PassRefPtr<IDBDatabaseBackendInterface> backend) 77 77 { 78 78 onEventCommon(); 79 m_result->set(IDBDatabase::create( idbDatabaseBackend));79 m_result->set(IDBDatabase::create(backend)); 80 80 } 81 81 … … 92 92 } 93 93 94 void IDBRequest::onSuccess(PassRefPtr<IDBObjectStore > idbObjectStore)94 void IDBRequest::onSuccess(PassRefPtr<IDBObjectStoreBackendInterface> backend) 95 95 { 96 96 onEventCommon(); 97 m_result->set(IDBObjectStore Request::create(idbObjectStore));97 m_result->set(IDBObjectStore::create(backend)); 98 98 } 99 99 -
trunk/WebCore/storage/IDBRequest.h
r64543 r64577 66 66 virtual void onSuccess(PassRefPtr<IDBIndexBackendInterface>); 67 67 virtual void onSuccess(PassRefPtr<IDBKey>); 68 virtual void onSuccess(PassRefPtr<IDBObjectStore >);68 virtual void onSuccess(PassRefPtr<IDBObjectStoreBackendInterface>); 69 69 virtual void onSuccess(PassRefPtr<SerializedScriptValue>); 70 70 -
trunk/WebKit/chromium/ChangeLog
r64554 r64577 1 2010-08-03 Andrei Popescu <andreip@google.com> 2 3 Reviewed by Jeremy Orlow. 4 5 [IndexedDB] IDBObjectStoreRequest should be called IDBObjectStore 6 https://bugs.webkit.org/show_bug.cgi?id=43420 7 8 * src/IDBCallbacksProxy.cpp: 9 (WebCore::IDBCallbacksProxy::onSuccess): 10 * src/IDBCallbacksProxy.h: 11 * src/IDBDatabaseProxy.cpp: 12 (WebCore::IDBDatabaseProxy::objectStore): 13 * src/IDBDatabaseProxy.h: 14 * src/IDBObjectStoreProxy.cpp: 15 (WebCore::IDBObjectStoreProxy::create): 16 * src/IDBObjectStoreProxy.h: 17 * src/WebIDBObjectStoreImpl.cpp: 18 (WebKit::WebIDBObjectStoreImpl::WebIDBObjectStoreImpl): 19 * src/WebIDBObjectStoreImpl.h: 20 1 21 2010-08-03 Yury Semikhatsky <yurys@chromium.org> 2 22 -
trunk/WebKit/chromium/src/IDBCallbacksProxy.cpp
r64543 r64577 70 70 } 71 71 72 void IDBCallbacksProxy::onSuccess(PassRefPtr<IDBDatabaseBackendInterface> idbDatabaseBackend)72 void IDBCallbacksProxy::onSuccess(PassRefPtr<IDBDatabaseBackendInterface> backend) 73 73 { 74 m_callbacks->onSuccess(new WebKit::WebIDBDatabaseImpl( idbDatabaseBackend));74 m_callbacks->onSuccess(new WebKit::WebIDBDatabaseImpl(backend)); 75 75 m_callbacks.clear(); 76 76 } … … 88 88 } 89 89 90 void IDBCallbacksProxy::onSuccess(PassRefPtr<IDBObjectStore > idbObjectStore)90 void IDBCallbacksProxy::onSuccess(PassRefPtr<IDBObjectStoreBackendInterface> backend) 91 91 { 92 m_callbacks->onSuccess(new WebKit::WebIDBObjectStoreImpl( idbObjectStore));92 m_callbacks->onSuccess(new WebKit::WebIDBObjectStoreImpl(backend)); 93 93 m_callbacks.clear(); 94 94 } -
trunk/WebKit/chromium/src/IDBCallbacksProxy.h
r64543 r64577 53 53 virtual void onSuccess(PassRefPtr<IDBIndexBackendInterface>); 54 54 virtual void onSuccess(PassRefPtr<IDBKey>); 55 virtual void onSuccess(PassRefPtr<IDBObjectStore >);55 virtual void onSuccess(PassRefPtr<IDBObjectStoreBackendInterface>); 56 56 virtual void onSuccess(PassRefPtr<SerializedScriptValue>); 57 57 -
trunk/WebKit/chromium/src/IDBDatabaseProxy.cpp
r64543 r64577 79 79 } 80 80 81 PassRefPtr<IDBObjectStore > IDBDatabaseProxy::objectStore(const String& name, unsigned short mode)81 PassRefPtr<IDBObjectStoreBackendInterface> IDBDatabaseProxy::objectStore(const String& name, unsigned short mode) 82 82 { 83 83 WebKit::WebIDBObjectStore* objectStore = m_webIDBDatabase->objectStore(name, mode); -
trunk/WebKit/chromium/src/IDBDatabaseProxy.h
r64543 r64577 51 51 52 52 virtual void createObjectStore(const String& name, const String& keyPath, bool autoIncrement, PassRefPtr<IDBCallbacks>); 53 virtual PassRefPtr<IDBObjectStore > objectStore(const String& name, unsigned short mode);53 virtual PassRefPtr<IDBObjectStoreBackendInterface> objectStore(const String& name, unsigned short mode); 54 54 virtual void removeObjectStore(const String& name, PassRefPtr<IDBCallbacks>); 55 55 -
trunk/WebKit/chromium/src/IDBObjectStoreProxy.cpp
r64358 r64577 40 40 namespace WebCore { 41 41 42 PassRefPtr<IDBObjectStore > IDBObjectStoreProxy::create(PassOwnPtr<WebKit::WebIDBObjectStore> objectStore)42 PassRefPtr<IDBObjectStoreBackendInterface> IDBObjectStoreProxy::create(PassOwnPtr<WebKit::WebIDBObjectStore> objectStore) 43 43 { 44 44 return adoptRef(new IDBObjectStoreProxy(objectStore)); -
trunk/WebKit/chromium/src/IDBObjectStoreProxy.h
r64358 r64577 27 27 #define IDBObjectStoreProxy_h 28 28 29 #include "IDBObjectStore .h"29 #include "IDBObjectStoreBackendInterface.h" 30 30 #include <wtf/OwnPtr.h> 31 31 #include <wtf/PassOwnPtr.h> … … 38 38 namespace WebCore { 39 39 40 class IDBObjectStoreProxy : public IDBObjectStore {40 class IDBObjectStoreProxy : public IDBObjectStoreBackendInterface { 41 41 public: 42 static PassRefPtr<IDBObjectStore > create(PassOwnPtr<WebKit::WebIDBObjectStore>);42 static PassRefPtr<IDBObjectStoreBackendInterface> create(PassOwnPtr<WebKit::WebIDBObjectStore>); 43 43 ~IDBObjectStoreProxy(); 44 44 -
trunk/WebKit/chromium/src/WebIDBDatabaseImpl.cpp
r64543 r64577 75 75 WebIDBObjectStore* WebIDBDatabaseImpl::objectStore(const WebString& name, unsigned short mode) 76 76 { 77 RefPtr<IDBObjectStore > objectStore = m_databaseBackend->objectStore(name, mode);77 RefPtr<IDBObjectStoreBackendInterface> objectStore = m_databaseBackend->objectStore(name, mode); 78 78 if (!objectStore) 79 79 return 0; -
trunk/WebKit/chromium/src/WebIDBObjectStoreImpl.cpp
r64358 r64577 29 29 #include "DOMStringList.h" 30 30 #include "IDBCallbacksProxy.h" 31 #include "IDBObjectStore .h"31 #include "IDBObjectStoreBackendInterface.h" 32 32 #include "WebIDBIndexImpl.h" 33 33 #include "WebIDBKey.h" … … 40 40 namespace WebKit { 41 41 42 WebIDBObjectStoreImpl::WebIDBObjectStoreImpl(PassRefPtr<IDBObjectStore > objectStore)42 WebIDBObjectStoreImpl::WebIDBObjectStoreImpl(PassRefPtr<IDBObjectStoreBackendInterface> objectStore) 43 43 : m_objectStore(objectStore) 44 44 { -
trunk/WebKit/chromium/src/WebIDBObjectStoreImpl.h
r63064 r64577 32 32 #include <wtf/RefPtr.h> 33 33 34 namespace WebCore { class IDBObjectStore ; }34 namespace WebCore { class IDBObjectStoreBackendInterface; } 35 35 36 36 namespace WebKit { … … 41 41 class WebIDBObjectStoreImpl : public WebIDBObjectStore { 42 42 public: 43 WebIDBObjectStoreImpl(WTF::PassRefPtr<WebCore::IDBObjectStore > objectStore);43 WebIDBObjectStoreImpl(WTF::PassRefPtr<WebCore::IDBObjectStoreBackendInterface>); 44 44 ~WebIDBObjectStoreImpl(); 45 45 … … 57 57 58 58 private: 59 WTF::RefPtr<WebCore::IDBObjectStore > m_objectStore;59 WTF::RefPtr<WebCore::IDBObjectStoreBackendInterface> m_objectStore; 60 60 }; 61 61
Note: See TracChangeset
for help on using the changeset viewer.