Changeset 58989 in webkit
- Timestamp:
- May 7, 2010 6:27:42 PM (14 years ago)
- Location:
- trunk/WebCore
- Files:
-
- 8 added
- 25 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r58983 r58989 1 2010-05-07 Dumitru Daniliuc <dumi@chromium.org> 2 3 Reviewed by Brady Eidson. 4 5 Adding the IDL files for the sync DB API and the stubs for the JS and V8 bindings. 6 https://bugs.webkit.org/show_bug.cgi?id=34994 7 8 * DerivedSources.cpp: 9 * DerivedSources.make: 10 * GNUmakefile.am: 11 * WebCore.gypi: 12 * WebCore.pri: 13 * WebCore.pro: 14 * WebCore.vcproj/WebCore.vcproj: 15 * WebCore.xcodeproj/project.pbxproj: 16 * bindings/js/JSBindingsAllInOne.cpp: 17 * bindings/js/JSDatabaseSyncCustom.cpp: Added. 18 (WebCore::JSDatabaseSync::changeVersion): 19 (WebCore::createTransaction): 20 (WebCore::JSDatabaseSync::transaction): 21 (WebCore::JSDatabaseSync::readTransaction): 22 * bindings/js/JSSQLTransactionSyncCustom.cpp: Added. 23 (WebCore::JSSQLTransactionSync::executeSql): 24 * bindings/js/JSWorkerContextCustom.cpp: 25 (WebCore::JSWorkerContext::openDatabaseSync): 26 * bindings/v8/custom/V8BindingMacros.h: Added. 27 * bindings/v8/custom/V8DatabaseSyncCustom.cpp: Added. 28 (WebCore::V8DatabaseSync::changeVersionCallback): 29 (WebCore::createTransaction): 30 (WebCore::V8DatabaseSync::transactionCallback): 31 (WebCore::V8DatabaseSync::readTransactionCallback): 32 * bindings/v8/custom/V8SQLTransactionSyncCustom.cpp: Added. 33 (WebCore::V8SQLTransactionSync::executeSqlCallback): 34 * bindings/v8/custom/V8WorkerContextCustom.cpp: 35 (WebCore::V8WorkerContext::openDatabaseSyncCallback): 36 * storage/Database.idl: 37 * storage/DatabaseCallback.h: 38 * storage/DatabaseCallback.idl: 39 * storage/DatabaseSync.cpp: 40 (WebCore::DatabaseSync::changeVersion): 41 (WebCore::DatabaseSync::transaction): 42 * storage/DatabaseSync.h: 43 * storage/DatabaseSync.idl: Added. 44 * storage/SQLError.idl: 45 * storage/SQLResultSet.idl: 46 * storage/SQLResultSetRowList.idl: 47 * storage/SQLTransaction.idl: 48 * storage/SQLTransactionSync.idl: Added. 49 * storage/SQLTransactionSyncCallback.h: 50 * storage/SQLTransactionSyncCallback.idl: Added. 51 * workers/WorkerContext.cpp: 52 (WebCore::WorkerContext::openDatabaseSync): 53 * workers/WorkerContext.h: 54 * workers/WorkerContext.idl: 55 1 56 2010-05-07 Beth Dakin <bdakin@apple.com> 2 57 -
trunk/WebCore/DerivedSources.cpp
r58801 r58989 66 66 #include "JSDatabase.cpp" 67 67 #include "JSDatabaseCallback.cpp" 68 #include "JSDatabaseSync.cpp" 68 69 #include "JSDataGridColumn.cpp" 69 70 #include "JSDataGridColumnList.cpp" … … 211 212 #include "JSSQLTransactionCallback.cpp" 212 213 #include "JSSQLTransactionErrorCallback.cpp" 214 #include "JSSQLTransactionSync.cpp" 215 #include "JSSQLTransactionSyncCallback.cpp" 213 216 #include "JSStorage.cpp" 214 217 #include "JSStorageEvent.cpp" -
trunk/WebCore/DerivedSources.make
r58878 r58989 117 117 Database \ 118 118 DatabaseCallback \ 119 DatabaseSync \ 119 120 Document \ 120 121 DocumentFragment \ … … 255 256 SQLTransactionCallback \ 256 257 SQLTransactionErrorCallback \ 258 SQLTransactionSync \ 259 SQLTransactionSyncCallback \ 257 260 Storage \ 258 261 StorageEvent \ -
trunk/WebCore/GNUmakefile.am
r58875 r58989 2308 2308 WebCore/storage/Database.idl \ 2309 2309 WebCore/storage/DatabaseCallback.idl \ 2310 WebCore/storage/DatabaseSync.idl \ 2310 2311 WebCore/storage/SQLError.idl \ 2311 2312 WebCore/storage/SQLResultSet.idl \ … … 2315 2316 WebCore/storage/SQLTransaction.idl \ 2316 2317 WebCore/storage/SQLTransactionCallback.idl \ 2317 WebCore/storage/SQLTransactionErrorCallback.idl 2318 WebCore/storage/SQLTransactionErrorCallback.idl \ 2319 WebCore/storage/SQLTransactionSync.idl \ 2320 WebCore/storage/SQLTransactionSyncCallback.idl 2318 2321 2319 2322 webcore_cppflags += \ … … 2323 2326 WebCore/bindings/js/JSCustomSQLStatementErrorCallback.cpp \ 2324 2327 WebCore/bindings/js/JSDatabaseCustom.cpp \ 2328 WebCore/bindings/js/JSDatabaseSyncCustom.cpp \ 2325 2329 WebCore/bindings/js/JSSQLResultSetRowListCustom.cpp \ 2326 2330 WebCore/bindings/js/JSSQLTransactionCustom.cpp \ 2331 WebCore/bindings/js/JSSQLTransactionSyncCustom.cpp \ 2327 2332 WebCore/platform/sql/SQLValue.cpp \ 2328 2333 WebCore/platform/sql/SQLValue.h \ -
trunk/WebCore/WebCore.gypi
r58905 r58989 220 220 'storage/Database.idl', 221 221 'storage/DatabaseCallback.idl', 222 'storage/DatabaseSync.idl', 222 223 'storage/IDBDatabaseError.idl', 223 224 'storage/IDBDatabaseException.idl', … … 232 233 'storage/SQLTransactionCallback.idl', 233 234 'storage/SQLTransactionErrorCallback.idl', 235 'storage/SQLTransactionSync.idl', 236 'storage/SQLTransactionSyncCallback.idl', 234 237 'storage/Storage.idl', 235 238 'storage/StorageEvent.idl', … … 508 511 'bindings/js/JSCustomXPathNSResolver.h', 509 512 'bindings/js/JSDatabaseCustom.cpp', 513 'bindings/js/JSDatabaseSyncCustom.cpp', 510 514 'bindings/js/JSDataGridColumnListCustom.cpp', 511 515 'bindings/js/JSDataGridDataSource.cpp', … … 602 606 'bindings/js/JSSQLResultSetRowListCustom.cpp', 603 607 'bindings/js/JSSQLTransactionCustom.cpp', 608 'bindings/js/JSSQLTransactionSyncCustom.cpp', 604 609 'bindings/js/JSStorageCustom.cpp', 605 610 'bindings/js/JSStorageCustom.h', … … 693 698 'bindings/v8/custom/V8CanvasRenderingContext2DCustom.cpp', 694 699 'bindings/v8/custom/V8WebGLRenderingContextCustom.cpp', 700 'bindings/v8/custom/V8BindingMacros.h', 695 701 'bindings/v8/custom/V8ClipboardCustom.cpp', 696 702 'bindings/v8/custom/V8ConsoleCustom.cpp', … … 713 719 'bindings/v8/custom/V8CustomXPathNSResolver.h', 714 720 'bindings/v8/custom/V8DatabaseCustom.cpp', 721 'bindings/v8/custom/V8DatabaseSyncCustom.cpp', 715 722 'bindings/v8/custom/V8DataGridColumnListCustom.cpp', 716 723 'bindings/v8/custom/V8DedicatedWorkerContextCustom.cpp', … … 766 773 'bindings/v8/custom/V8SQLResultSetRowListCustom.cpp', 767 774 'bindings/v8/custom/V8SQLTransactionCustom.cpp', 775 'bindings/v8/custom/V8SQLTransactionSyncCustom.cpp', 768 776 'bindings/v8/custom/V8SVGDocumentCustom.cpp', 769 777 'bindings/v8/custom/V8SVGElementCustom.cpp', -
trunk/WebCore/WebCore.pri
r58801 r58989 438 438 storage/Database.idl \ 439 439 storage/DatabaseCallback.idl \ 440 storage/DatabaseSync.idl \ 440 441 storage/Storage.idl \ 441 442 storage/StorageEvent.idl \ … … 448 449 storage/SQLTransactionCallback.idl \ 449 450 storage/SQLTransactionErrorCallback.idl \ 451 storage/SQLTransactionSync.idl \ 452 storage/SQLTransactionSyncCallback.idl \ 450 453 svg/SVGZoomEvent.idl \ 451 454 svg/SVGAElement.idl \ -
trunk/WebCore/WebCore.pro
r58906 r58989 2301 2301 bindings/js/JSCustomSQLStatementErrorCallback.cpp \ 2302 2302 bindings/js/JSDatabaseCustom.cpp \ 2303 bindings/js/JSDatabaseSyncCustom.cpp \ 2303 2304 bindings/js/JSSQLResultSetRowListCustom.cpp \ 2304 bindings/js/JSSQLTransactionCustom.cpp 2305 bindings/js/JSSQLTransactionCustom.cpp \ 2306 bindings/js/JSSQLTransactionSyncCustom.cpp 2305 2307 } 2306 2308 … … 2326 2328 storage/SQLTransactionCoordinator.h \ 2327 2329 storage/SQLTransactionSync.h \ 2330 storage/SQLTransactionSyncCallback.h \ 2328 2331 storage/StorageArea.h \ 2329 2332 storage/StorageAreaImpl.h \ -
trunk/WebCore/WebCore.vcproj/WebCore.vcproj
r58832 r58989 2514 2514 </File> 2515 2515 <File 2516 RelativePath="$(WebKitOutputDir)\obj\$(ProjectName)\DerivedSources\JSDatabaseSync.cpp" 2517 > 2518 <FileConfiguration 2519 Name="Debug|Win32" 2520 ExcludedFromBuild="true" 2521 > 2522 <Tool 2523 Name="VCCLCompilerTool" 2524 /> 2525 </FileConfiguration> 2526 <FileConfiguration 2527 Name="Release|Win32" 2528 ExcludedFromBuild="true" 2529 > 2530 <Tool 2531 Name="VCCLCompilerTool" 2532 /> 2533 </FileConfiguration> 2534 <FileConfiguration 2535 Name="Debug_Internal|Win32" 2536 ExcludedFromBuild="true" 2537 > 2538 <Tool 2539 Name="VCCLCompilerTool" 2540 /> 2541 </FileConfiguration> 2542 <FileConfiguration 2543 Name="Debug_Cairo|Win32" 2544 ExcludedFromBuild="true" 2545 > 2546 <Tool 2547 Name="VCCLCompilerTool" 2548 /> 2549 </FileConfiguration> 2550 <FileConfiguration 2551 Name="Release_Cairo|Win32" 2552 ExcludedFromBuild="true" 2553 > 2554 <Tool 2555 Name="VCCLCompilerTool" 2556 /> 2557 </FileConfiguration> 2558 <FileConfiguration 2559 Name="Debug_All|Win32" 2560 ExcludedFromBuild="true" 2561 > 2562 <Tool 2563 Name="VCCLCompilerTool" 2564 /> 2565 </FileConfiguration> 2566 </File> 2567 <File 2568 RelativePath="$(WebKitOutputDir)\obj\$(ProjectName)\DerivedSources\JSDatabaseSync.h" 2569 > 2570 </File> 2571 <File 2516 2572 RelativePath="$(WebKitOutputDir)\obj\$(ProjectName)\DerivedSources\JSDataGridColumn.cpp" 2517 2573 > … … 10276 10332 <File 10277 10333 RelativePath="$(WebKitOutputDir)\obj\WebCore\DerivedSources\JSSQLTransaction.h" 10334 > 10335 </File> 10336 <File 10337 RelativePath="$(WebKitOutputDir)\obj\WebCore\DerivedSources\JSSQLTransactionSync.cpp" 10338 > 10339 <FileConfiguration 10340 Name="Debug|Win32" 10341 ExcludedFromBuild="true" 10342 > 10343 <Tool 10344 Name="VCCLCompilerTool" 10345 /> 10346 </FileConfiguration> 10347 <FileConfiguration 10348 Name="Release|Win32" 10349 ExcludedFromBuild="true" 10350 > 10351 <Tool 10352 Name="VCCLCompilerTool" 10353 /> 10354 </FileConfiguration> 10355 <FileConfiguration 10356 Name="Debug_Internal|Win32" 10357 ExcludedFromBuild="true" 10358 > 10359 <Tool 10360 Name="VCCLCompilerTool" 10361 /> 10362 </FileConfiguration> 10363 <FileConfiguration 10364 Name="Debug_Cairo|Win32" 10365 ExcludedFromBuild="true" 10366 > 10367 <Tool 10368 Name="VCCLCompilerTool" 10369 /> 10370 </FileConfiguration> 10371 <FileConfiguration 10372 Name="Release_Cairo|Win32" 10373 ExcludedFromBuild="true" 10374 > 10375 <Tool 10376 Name="VCCLCompilerTool" 10377 /> 10378 </FileConfiguration> 10379 <FileConfiguration 10380 Name="Debug_All|Win32" 10381 ExcludedFromBuild="true" 10382 > 10383 <Tool 10384 Name="VCCLCompilerTool" 10385 /> 10386 </FileConfiguration> 10387 </File> 10388 <File 10389 RelativePath="$(WebKitOutputDir)\obj\WebCore\DerivedSources\JSSQLTransactionSync.h" 10278 10390 > 10279 10391 </File> … … 35700 35812 </File> 35701 35813 <File 35814 RelativePath="..\bindings\js\JSDatabaseSyncCustom.cpp" 35815 > 35816 <FileConfiguration 35817 Name="Debug|Win32" 35818 ExcludedFromBuild="true" 35819 > 35820 <Tool 35821 Name="VCCLCompilerTool" 35822 /> 35823 </FileConfiguration> 35824 <FileConfiguration 35825 Name="Release|Win32" 35826 ExcludedFromBuild="true" 35827 > 35828 <Tool 35829 Name="VCCLCompilerTool" 35830 /> 35831 </FileConfiguration> 35832 <FileConfiguration 35833 Name="Debug_Internal|Win32" 35834 ExcludedFromBuild="true" 35835 > 35836 <Tool 35837 Name="VCCLCompilerTool" 35838 /> 35839 </FileConfiguration> 35840 <FileConfiguration 35841 Name="Debug_Cairo|Win32" 35842 ExcludedFromBuild="true" 35843 > 35844 <Tool 35845 Name="VCCLCompilerTool" 35846 /> 35847 </FileConfiguration> 35848 <FileConfiguration 35849 Name="Release_Cairo|Win32" 35850 ExcludedFromBuild="true" 35851 > 35852 <Tool 35853 Name="VCCLCompilerTool" 35854 /> 35855 </FileConfiguration> 35856 <FileConfiguration 35857 Name="Debug_All|Win32" 35858 ExcludedFromBuild="true" 35859 > 35860 <Tool 35861 Name="VCCLCompilerTool" 35862 /> 35863 </FileConfiguration> 35864 </File> 35865 <File 35702 35866 RelativePath="..\bindings\js\JSDataGridColumnListCustom.cpp" 35703 35867 > … … 38929 39093 <File 38930 39094 RelativePath="..\bindings\js\JSSQLTransactionCustom.cpp" 39095 > 39096 <FileConfiguration 39097 Name="Debug|Win32" 39098 ExcludedFromBuild="true" 39099 > 39100 <Tool 39101 Name="VCCLCompilerTool" 39102 /> 39103 </FileConfiguration> 39104 <FileConfiguration 39105 Name="Release|Win32" 39106 ExcludedFromBuild="true" 39107 > 39108 <Tool 39109 Name="VCCLCompilerTool" 39110 /> 39111 </FileConfiguration> 39112 <FileConfiguration 39113 Name="Debug_Internal|Win32" 39114 ExcludedFromBuild="true" 39115 > 39116 <Tool 39117 Name="VCCLCompilerTool" 39118 /> 39119 </FileConfiguration> 39120 <FileConfiguration 39121 Name="Debug_Cairo|Win32" 39122 ExcludedFromBuild="true" 39123 > 39124 <Tool 39125 Name="VCCLCompilerTool" 39126 /> 39127 </FileConfiguration> 39128 <FileConfiguration 39129 Name="Release_Cairo|Win32" 39130 ExcludedFromBuild="true" 39131 > 39132 <Tool 39133 Name="VCCLCompilerTool" 39134 /> 39135 </FileConfiguration> 39136 <FileConfiguration 39137 Name="Debug_All|Win32" 39138 ExcludedFromBuild="true" 39139 > 39140 <Tool 39141 Name="VCCLCompilerTool" 39142 /> 39143 </FileConfiguration> 39144 </File> 39145 <File 39146 RelativePath="..\bindings\js\JSSQLTransactionSyncCustom.cpp" 38931 39147 > 38932 39148 <FileConfiguration -
trunk/WebCore/WebCore.xcodeproj/project.pbxproj
r58832 r58989 4169 4169 B523CF0A1182675400EBB29C /* DatabaseSync.cpp in Sources */ = {isa = PBXBuildFile; fileRef = B523CF031182675400EBB29C /* DatabaseSync.cpp */; }; 4170 4170 B523CF0B1182675400EBB29C /* DatabaseSync.h in Headers */ = {isa = PBXBuildFile; fileRef = B523CF041182675400EBB29C /* DatabaseSync.h */; }; 4171 B55D5AA4119131FC00BCC315 /* JSSQLTransactionSyncCallback.h in Headers */ = {isa = PBXBuildFile; fileRef = B55D5AA2119131FC00BCC315 /* JSSQLTransactionSyncCallback.h */; }; 4172 B55D5AA5119131FC00BCC315 /* JSSQLTransactionSyncCallback.cpp in Sources */ = {isa = PBXBuildFile; fileRef = B55D5AA3119131FC00BCC315 /* JSSQLTransactionSyncCallback.cpp */; }; 4173 B55D5AA81191325000BCC315 /* JSDatabaseSyncCustom.cpp in Sources */ = {isa = PBXBuildFile; fileRef = B55D5AA61191325000BCC315 /* JSDatabaseSyncCustom.cpp */; }; 4174 B55D5AA91191325000BCC315 /* JSSQLTransactionSyncCustom.cpp in Sources */ = {isa = PBXBuildFile; fileRef = B55D5AA71191325000BCC315 /* JSSQLTransactionSyncCustom.cpp */; }; 4175 B58CEB6911913607002A6790 /* JSDatabaseSync.h in Headers */ = {isa = PBXBuildFile; fileRef = B58CEB6711913607002A6790 /* JSDatabaseSync.h */; }; 4176 B58CEB6A11913607002A6790 /* JSDatabaseSync.cpp in Sources */ = {isa = PBXBuildFile; fileRef = B58CEB6811913607002A6790 /* JSDatabaseSync.cpp */; }; 4177 B58CEB6D1191361C002A6790 /* JSSQLTransactionSync.h in Headers */ = {isa = PBXBuildFile; fileRef = B58CEB6B1191361C002A6790 /* JSSQLTransactionSync.h */; }; 4178 B58CEB6E1191361C002A6790 /* JSSQLTransactionSync.cpp in Sources */ = {isa = PBXBuildFile; fileRef = B58CEB6C1191361C002A6790 /* JSSQLTransactionSync.cpp */; }; 4171 4179 B59DD699119029E5007E9684 /* JSDatabaseCallback.h in Headers */ = {isa = PBXBuildFile; fileRef = B59DD697119029E5007E9684 /* JSDatabaseCallback.h */; }; 4172 4180 B59DD69A119029E5007E9684 /* JSDatabaseCallback.cpp in Sources */ = {isa = PBXBuildFile; fileRef = B59DD698119029E5007E9684 /* JSDatabaseCallback.cpp */; }; … … 9531 9539 B523CF031182675400EBB29C /* DatabaseSync.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = DatabaseSync.cpp; sourceTree = "<group>"; }; 9532 9540 B523CF041182675400EBB29C /* DatabaseSync.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = DatabaseSync.h; sourceTree = "<group>"; }; 9541 B55D5AA2119131FC00BCC315 /* JSSQLTransactionSyncCallback.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JSSQLTransactionSyncCallback.h; sourceTree = "<group>"; }; 9542 B55D5AA3119131FC00BCC315 /* JSSQLTransactionSyncCallback.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSSQLTransactionSyncCallback.cpp; sourceTree = "<group>"; }; 9543 B55D5AA61191325000BCC315 /* JSDatabaseSyncCustom.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSDatabaseSyncCustom.cpp; sourceTree = "<group>"; }; 9544 B55D5AA71191325000BCC315 /* JSSQLTransactionSyncCustom.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSSQLTransactionSyncCustom.cpp; sourceTree = "<group>"; }; 9545 B55D5ABB1191327200BCC315 /* DatabaseSync.idl */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = DatabaseSync.idl; sourceTree = "<group>"; }; 9546 B55D5ABC1191327200BCC315 /* SQLTransactionSync.idl */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = SQLTransactionSync.idl; sourceTree = "<group>"; }; 9547 B55D5ABD1191327200BCC315 /* SQLTransactionSyncCallback.idl */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = SQLTransactionSyncCallback.idl; sourceTree = "<group>"; }; 9548 B58CEB6711913607002A6790 /* JSDatabaseSync.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JSDatabaseSync.h; sourceTree = "<group>"; }; 9549 B58CEB6811913607002A6790 /* JSDatabaseSync.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSDatabaseSync.cpp; sourceTree = "<group>"; }; 9550 B58CEB6B1191361C002A6790 /* JSSQLTransactionSync.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JSSQLTransactionSync.h; sourceTree = "<group>"; }; 9551 B58CEB6C1191361C002A6790 /* JSSQLTransactionSync.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSSQLTransactionSync.cpp; sourceTree = "<group>"; }; 9533 9552 B59DD68D1190298E007E9684 /* DatabaseCallback.idl */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = DatabaseCallback.idl; sourceTree = "<group>"; }; 9534 9553 B59DD68E1190298E007E9684 /* SQLStatementCallback.idl */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = SQLStatementCallback.idl; sourceTree = "<group>"; }; … … 10777 10796 B523CF031182675400EBB29C /* DatabaseSync.cpp */, 10778 10797 B523CF041182675400EBB29C /* DatabaseSync.h */, 10798 B55D5ABB1191327200BCC315 /* DatabaseSync.idl */, 10779 10799 519611E90CAC749C0010A80C /* DatabaseTask.cpp */, 10780 10800 519611E80CAC749C0010A80C /* DatabaseTask.h */, … … 10819 10839 B523CF021182675400EBB29C /* SQLTransactionSync.cpp */, 10820 10840 B523CF011182675400EBB29C /* SQLTransactionSync.h */, 10841 B55D5ABC1191327200BCC315 /* SQLTransactionSync.idl */, 10821 10842 B523CEFF1182675400EBB29C /* SQLTransactionSyncCallback.h */, 10843 B55D5ABD1191327200BCC315 /* SQLTransactionSyncCallback.idl */, 10822 10844 51E3F9C50DA059DC00250911 /* Storage.cpp */, 10823 10845 51E3F9C40DA059DC00250911 /* Storage.h */, … … 14106 14128 B59DD6A711902A71007E9684 /* JSSQLStatementErrorCallback.h */, 14107 14129 B59DD6A811902A71007E9684 /* JSSQLStatementErrorCallback.cpp */, 14130 B55D5AA2119131FC00BCC315 /* JSSQLTransactionSyncCallback.h */, 14131 B55D5AA3119131FC00BCC315 /* JSSQLTransactionSyncCallback.cpp */, 14132 B58CEB6711913607002A6790 /* JSDatabaseSync.h */, 14133 B58CEB6811913607002A6790 /* JSDatabaseSync.cpp */, 14134 B58CEB6B1191361C002A6790 /* JSSQLTransactionSync.h */, 14135 B58CEB6C1191361C002A6790 /* JSSQLTransactionSync.cpp */, 14108 14136 ); 14109 14137 name = Storage; … … 15050 15078 isa = PBXGroup; 15051 15079 children = ( 15080 B55D5AA61191325000BCC315 /* JSDatabaseSyncCustom.cpp */, 15081 B55D5AA71191325000BCC315 /* JSSQLTransactionSyncCustom.cpp */, 15052 15082 BC2ED6BB0C6BD2F000920BFF /* JSAttrCustom.cpp */, 15053 15083 49EED14B1051971900099FAB /* JSCanvasRenderingContext2DCustom.cpp */, … … 18954 18984 B59DD6A511902A62007E9684 /* JSSQLStatementCallback.h in Headers */, 18955 18985 B59DD6A911902A71007E9684 /* JSSQLStatementErrorCallback.h in Headers */, 18986 B55D5AA4119131FC00BCC315 /* JSSQLTransactionSyncCallback.h in Headers */, 18987 B58CEB6911913607002A6790 /* JSDatabaseSync.h in Headers */, 18988 B58CEB6D1191361C002A6790 /* JSSQLTransactionSync.h in Headers */, 18956 18989 ); 18957 18990 runOnlyForDeploymentPostprocessing = 0; … … 21196 21229 B59DD6A611902A62007E9684 /* JSSQLStatementCallback.cpp in Sources */, 21197 21230 B59DD6AA11902A71007E9684 /* JSSQLStatementErrorCallback.cpp in Sources */, 21231 B55D5AA5119131FC00BCC315 /* JSSQLTransactionSyncCallback.cpp in Sources */, 21232 B55D5AA81191325000BCC315 /* JSDatabaseSyncCustom.cpp in Sources */, 21233 B55D5AA91191325000BCC315 /* JSSQLTransactionSyncCustom.cpp in Sources */, 21234 B58CEB6A11913607002A6790 /* JSDatabaseSync.cpp in Sources */, 21235 B58CEB6E1191361C002A6790 /* JSSQLTransactionSync.cpp in Sources */, 21198 21236 ); 21199 21237 runOnlyForDeploymentPostprocessing = 0; -
trunk/WebCore/bindings/js/JSBindingsAllInOne.cpp
r58801 r58989 52 52 #include "JSDataGridDataSource.cpp" 53 53 #include "JSDatabaseCustom.cpp" 54 #include "JSDatabaseSyncCustom.cpp" 54 55 #include "JSDedicatedWorkerContextCustom.cpp" 55 56 #include "JSDesktopNotificationsCustom.cpp" … … 103 104 #include "JSSQLResultSetRowListCustom.cpp" 104 105 #include "JSSQLTransactionCustom.cpp" 106 #include "JSSQLTransactionSyncCustom.cpp" 105 107 #include "JSSVGElementInstanceCustom.cpp" 106 108 #include "JSSVGLengthCustom.cpp" -
trunk/WebCore/bindings/js/JSWorkerContextCustom.cpp
r58597 r58989 143 143 #endif 144 144 145 #if ENABLE(DATABASE) 146 JSValue JSWorkerContext::openDatabaseSync(ExecState*, const ArgList&) 147 { 148 return jsUndefined(); 149 } 150 #endif 151 145 152 } // namespace WebCore 146 153 -
trunk/WebCore/bindings/v8/custom/V8WorkerContextCustom.cpp
r58597 r58989 137 137 } 138 138 139 #if ENABLE(DATABASE) 140 v8::Handle<v8::Value> V8WorkerContext::openDatabaseSyncCallback(const v8::Arguments& args) 141 { 142 INC_STATS("DOM.V8WorkerContext.openDatabaseSync()"); 143 return v8::Undefined(); 144 } 145 #endif 146 139 147 } // namespace WebCore 140 148 -
trunk/WebCore/storage/Database.idl
r58597 r58989 31 31 interface [ 32 32 Conditional=DATABASE, 33 OmitConstructor 33 OmitConstructor, 34 NoStaticTables 34 35 ] Database { 35 36 readonly attribute DOMString version; -
trunk/WebCore/storage/DatabaseCallback.h
r58801 r58989 39 39 40 40 class Database; 41 class DatabaseSync; 41 42 class ScriptExecutionContext; 42 43 … … 45 46 virtual ~DatabaseCallback() { } 46 47 virtual bool handleEvent(ScriptExecutionContext*, Database*) = 0; 48 virtual bool handleEvent(ScriptExecutionContext*, DatabaseSync*) = 0; 47 49 }; 48 50 -
trunk/WebCore/storage/DatabaseCallback.idl
r58801 r58989 33 33 ] DatabaseCallback { 34 34 boolean handleEvent(in Database database); 35 boolean handleEvent(in DatabaseSync database); 35 36 }; 36 37 } -
trunk/WebCore/storage/DatabaseSync.cpp
r58440 r58989 92 92 } 93 93 94 void DatabaseSync::changeVersion(const String&, const String&, PassRefPtr<SQLTransactionSyncCallback> )94 void DatabaseSync::changeVersion(const String&, const String&, PassRefPtr<SQLTransactionSyncCallback>, ExceptionCode&) 95 95 { 96 96 ASSERT(m_scriptExecutionContext->isContextThread()); 97 97 } 98 98 99 void DatabaseSync::transaction(PassRefPtr<SQLTransactionSyncCallback>, bool )99 void DatabaseSync::transaction(PassRefPtr<SQLTransactionSyncCallback>, bool, ExceptionCode&) 100 100 { 101 101 ASSERT(m_scriptExecutionContext->isContextThread()); -
trunk/WebCore/storage/DatabaseSync.h
r58437 r58989 54 54 const String& displayName, unsigned long estimatedSize, PassRefPtr<DatabaseCallback>, ExceptionCode&); 55 55 String version() const; 56 void changeVersion(const String& oldVersion, const String& newVersion, PassRefPtr<SQLTransactionSyncCallback> );57 void transaction(PassRefPtr<SQLTransactionSyncCallback>, bool readOnly );56 void changeVersion(const String& oldVersion, const String& newVersion, PassRefPtr<SQLTransactionSyncCallback>, ExceptionCode&); 57 void transaction(PassRefPtr<SQLTransactionSyncCallback>, bool readOnly, ExceptionCode&); 58 58 59 59 // Internal engine support -
trunk/WebCore/storage/SQLError.idl
r58597 r58989 31 31 interface [ 32 32 Conditional=DATABASE, 33 OmitConstructor 33 OmitConstructor, 34 NoStaticTables 34 35 ] SQLError { 35 36 readonly attribute unsigned long code; -
trunk/WebCore/storage/SQLResultSet.idl
r58597 r58989 31 31 interface [ 32 32 Conditional=DATABASE, 33 OmitConstructor 33 OmitConstructor, 34 NoStaticTables 34 35 ] SQLResultSet { 35 36 readonly attribute SQLResultSetRowList rows; -
trunk/WebCore/storage/SQLResultSetRowList.idl
r58597 r58989 31 31 interface [ 32 32 Conditional=DATABASE, 33 OmitConstructor 33 OmitConstructor, 34 NoStaticTables 34 35 ] SQLResultSetRowList { 35 36 readonly attribute unsigned long length; -
trunk/WebCore/storage/SQLTransaction.idl
r58597 r58989 31 31 interface [ 32 32 Conditional=DATABASE, 33 OmitConstructor 33 OmitConstructor, 34 NoStaticTables 34 35 ] SQLTransaction { 35 36 [Custom] void executeSql(in DOMString sqlStatement, in ObjectArray arguments, in SQLStatementCallback callback, in SQLStatementErrorCallback errorCallback); -
trunk/WebCore/storage/SQLTransactionSyncCallback.h
r58437 r58989 43 43 public: 44 44 virtual ~SQLTransactionSyncCallback() { } 45 virtual void handleEvent(ScriptExecutionContext*, SQLTransactionSync*, bool& raisedException) = 0;45 virtual bool handleEvent(ScriptExecutionContext*, SQLTransactionSync*) = 0; 46 46 }; 47 47 -
trunk/WebCore/workers/WorkerContext.cpp
r58647 r58989 282 282 return Database::openDatabase(this, name, version, displayName, estimatedSize, creationCallback, ec); 283 283 } 284 285 PassRefPtr<DatabaseSync> WorkerContext::openDatabaseSync(const String& name, const String& version, const String& displayName, unsigned long estimatedSize, PassRefPtr<DatabaseCallback> creationCallback, ExceptionCode& ec) 286 { 287 if (!securityOrigin()->canAccessDatabase()) { 288 ec = SECURITY_ERR; 289 return 0; 290 } 291 292 ASSERT(DatabaseSync::isAvailable()); 293 if (!DatabaseSync::isAvailable()) 294 return 0; 295 296 return DatabaseSync::openDatabaseSync(this, name, version, displayName, estimatedSize, creationCallback, ec); 297 } 284 298 #endif 285 299 -
trunk/WebCore/workers/WorkerContext.h
r58597 r58989 32 32 #include "AtomicStringHash.h" 33 33 #include "Database.h" 34 #include "DatabaseSync.h" 34 35 #include "DatabaseCallback.h" 35 36 #include "EventListener.h" … … 106 107 // HTML 5 client-side database 107 108 PassRefPtr<Database> openDatabase(const String& name, const String& version, const String& displayName, unsigned long estimatedSize, PassRefPtr<DatabaseCallback> creationCallback, ExceptionCode&); 109 PassRefPtr<DatabaseSync> openDatabaseSync(const String& name, const String& version, const String& displayName, unsigned long estimatedSize, PassRefPtr<DatabaseCallback> creationCallback, ExceptionCode&); 110 108 111 // Not implemented yet. 109 112 virtual bool isDatabaseReadOnly() const { return false; } -
trunk/WebCore/workers/WorkerContext.idl
r58597 r58989 50 50 [Custom] void importScripts(/*[Variadic] in DOMString urls */); 51 51 attribute [Replaceable] WorkerNavigator navigator; 52 53 #if defined(ENABLE_DATABASE) && ENABLE_DATABASE 52 54 // Database openDatabase(in DOMString name, in DOMString version, in DOMString displayName, in unsigned long estimatedSize); 53 // DatabaseSync openDatabaseSync(in DOMString name, in DOMString version, in DOMString displayName, in unsigned long estimatedSize); 55 [EnableAtRuntime, Custom] DatabaseSync openDatabaseSync(in DOMString name, in DOMString version, in DOMString displayName, in unsigned long estimatedSize, in DatabaseCallback creationCallback); 56 #endif 54 57 55 58 // Timers
Note: See TracChangeset
for help on using the changeset viewer.