Changeset 58989 in webkit


Ignore:
Timestamp:
May 7, 2010 6:27:42 PM (14 years ago)
Author:
dumi@chromium.org
Message:

Adding the IDL files for the sync DB API and the stubs for the JS and V8 bindings.
https://bugs.webkit.org/show_bug.cgi?id=34994

Reviewed by Brady Eidson.

  • DerivedSources.cpp:
  • DerivedSources.make:
  • GNUmakefile.am:
  • WebCore.gypi:
  • WebCore.pri:
  • WebCore.pro:
  • WebCore.vcproj/WebCore.vcproj:
  • WebCore.xcodeproj/project.pbxproj:
  • bindings/js/JSBindingsAllInOne.cpp:
  • bindings/js/JSDatabaseSyncCustom.cpp: Added.

(WebCore::JSDatabaseSync::changeVersion):
(WebCore::createTransaction):
(WebCore::JSDatabaseSync::transaction):
(WebCore::JSDatabaseSync::readTransaction):

  • bindings/js/JSSQLTransactionSyncCustom.cpp: Added.

(WebCore::JSSQLTransactionSync::executeSql):

  • bindings/js/JSWorkerContextCustom.cpp:

(WebCore::JSWorkerContext::openDatabaseSync):

  • bindings/v8/custom/V8BindingMacros.h: Added.
  • bindings/v8/custom/V8DatabaseSyncCustom.cpp: Added.

(WebCore::V8DatabaseSync::changeVersionCallback):
(WebCore::createTransaction):
(WebCore::V8DatabaseSync::transactionCallback):
(WebCore::V8DatabaseSync::readTransactionCallback):

  • bindings/v8/custom/V8SQLTransactionSyncCustom.cpp: Added.

(WebCore::V8SQLTransactionSync::executeSqlCallback):

  • bindings/v8/custom/V8WorkerContextCustom.cpp:

(WebCore::V8WorkerContext::openDatabaseSyncCallback):

  • storage/Database.idl:
  • storage/DatabaseCallback.h:
  • storage/DatabaseCallback.idl:
  • storage/DatabaseSync.cpp:

(WebCore::DatabaseSync::changeVersion):
(WebCore::DatabaseSync::transaction):

  • storage/DatabaseSync.h:
  • storage/DatabaseSync.idl: Added.
  • storage/SQLError.idl:
  • storage/SQLResultSet.idl:
  • storage/SQLResultSetRowList.idl:
  • storage/SQLTransaction.idl:
  • storage/SQLTransactionSync.idl: Added.
  • storage/SQLTransactionSyncCallback.h:
  • storage/SQLTransactionSyncCallback.idl: Added.
  • workers/WorkerContext.cpp:

(WebCore::WorkerContext::openDatabaseSync):

  • workers/WorkerContext.h:
  • workers/WorkerContext.idl:
Location:
trunk/WebCore
Files:
8 added
25 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r58983 r58989  
     12010-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
    1562010-05-07  Beth Dakin  <bdakin@apple.com>
    257
  • trunk/WebCore/DerivedSources.cpp

    r58801 r58989  
    6666#include "JSDatabase.cpp"
    6767#include "JSDatabaseCallback.cpp"
     68#include "JSDatabaseSync.cpp"
    6869#include "JSDataGridColumn.cpp"
    6970#include "JSDataGridColumnList.cpp"
     
    211212#include "JSSQLTransactionCallback.cpp"
    212213#include "JSSQLTransactionErrorCallback.cpp"
     214#include "JSSQLTransactionSync.cpp"
     215#include "JSSQLTransactionSyncCallback.cpp"
    213216#include "JSStorage.cpp"
    214217#include "JSStorageEvent.cpp"
  • trunk/WebCore/DerivedSources.make

    r58878 r58989  
    117117    Database \
    118118    DatabaseCallback \
     119    DatabaseSync \
    119120    Document \
    120121    DocumentFragment \
     
    255256    SQLTransactionCallback \
    256257    SQLTransactionErrorCallback \
     258    SQLTransactionSync \
     259    SQLTransactionSyncCallback \
    257260    Storage \
    258261    StorageEvent \
  • trunk/WebCore/GNUmakefile.am

    r58875 r58989  
    23082308        WebCore/storage/Database.idl \
    23092309        WebCore/storage/DatabaseCallback.idl \
     2310        WebCore/storage/DatabaseSync.idl \
    23102311        WebCore/storage/SQLError.idl \
    23112312        WebCore/storage/SQLResultSet.idl \
     
    23152316        WebCore/storage/SQLTransaction.idl \
    23162317        WebCore/storage/SQLTransactionCallback.idl \
    2317         WebCore/storage/SQLTransactionErrorCallback.idl
     2318        WebCore/storage/SQLTransactionErrorCallback.idl \
     2319        WebCore/storage/SQLTransactionSync.idl \
     2320        WebCore/storage/SQLTransactionSyncCallback.idl
    23182321
    23192322webcore_cppflags += \
     
    23232326        WebCore/bindings/js/JSCustomSQLStatementErrorCallback.cpp \
    23242327        WebCore/bindings/js/JSDatabaseCustom.cpp \
     2328        WebCore/bindings/js/JSDatabaseSyncCustom.cpp \
    23252329        WebCore/bindings/js/JSSQLResultSetRowListCustom.cpp \
    23262330        WebCore/bindings/js/JSSQLTransactionCustom.cpp \
     2331        WebCore/bindings/js/JSSQLTransactionSyncCustom.cpp \
    23272332        WebCore/platform/sql/SQLValue.cpp \
    23282333        WebCore/platform/sql/SQLValue.h \
  • trunk/WebCore/WebCore.gypi

    r58905 r58989  
    220220            'storage/Database.idl',
    221221            'storage/DatabaseCallback.idl',
     222            'storage/DatabaseSync.idl',
    222223            'storage/IDBDatabaseError.idl',
    223224            'storage/IDBDatabaseException.idl',
     
    232233            'storage/SQLTransactionCallback.idl',
    233234            'storage/SQLTransactionErrorCallback.idl',
     235            'storage/SQLTransactionSync.idl',
     236            'storage/SQLTransactionSyncCallback.idl',
    234237            'storage/Storage.idl',
    235238            'storage/StorageEvent.idl',
     
    508511            'bindings/js/JSCustomXPathNSResolver.h',
    509512            'bindings/js/JSDatabaseCustom.cpp',
     513            'bindings/js/JSDatabaseSyncCustom.cpp',
    510514            'bindings/js/JSDataGridColumnListCustom.cpp',
    511515            'bindings/js/JSDataGridDataSource.cpp',
     
    602606            'bindings/js/JSSQLResultSetRowListCustom.cpp',
    603607            'bindings/js/JSSQLTransactionCustom.cpp',
     608            'bindings/js/JSSQLTransactionSyncCustom.cpp',
    604609            'bindings/js/JSStorageCustom.cpp',
    605610            'bindings/js/JSStorageCustom.h',
     
    693698            'bindings/v8/custom/V8CanvasRenderingContext2DCustom.cpp',
    694699            'bindings/v8/custom/V8WebGLRenderingContextCustom.cpp',
     700            'bindings/v8/custom/V8BindingMacros.h',
    695701            'bindings/v8/custom/V8ClipboardCustom.cpp',
    696702            'bindings/v8/custom/V8ConsoleCustom.cpp',
     
    713719            'bindings/v8/custom/V8CustomXPathNSResolver.h',
    714720            'bindings/v8/custom/V8DatabaseCustom.cpp',
     721            'bindings/v8/custom/V8DatabaseSyncCustom.cpp',
    715722            'bindings/v8/custom/V8DataGridColumnListCustom.cpp',
    716723            'bindings/v8/custom/V8DedicatedWorkerContextCustom.cpp',
     
    766773            'bindings/v8/custom/V8SQLResultSetRowListCustom.cpp',
    767774            'bindings/v8/custom/V8SQLTransactionCustom.cpp',
     775            'bindings/v8/custom/V8SQLTransactionSyncCustom.cpp',
    768776            'bindings/v8/custom/V8SVGDocumentCustom.cpp',
    769777            'bindings/v8/custom/V8SVGElementCustom.cpp',
  • trunk/WebCore/WebCore.pri

    r58801 r58989  
    438438    storage/Database.idl \
    439439    storage/DatabaseCallback.idl \
     440    storage/DatabaseSync.idl \
    440441    storage/Storage.idl \
    441442    storage/StorageEvent.idl \
     
    448449    storage/SQLTransactionCallback.idl \
    449450    storage/SQLTransactionErrorCallback.idl \
     451    storage/SQLTransactionSync.idl \
     452    storage/SQLTransactionSyncCallback.idl \
    450453    svg/SVGZoomEvent.idl \
    451454    svg/SVGAElement.idl \
  • trunk/WebCore/WebCore.pro

    r58906 r58989  
    23012301        bindings/js/JSCustomSQLStatementErrorCallback.cpp \
    23022302        bindings/js/JSDatabaseCustom.cpp \
     2303        bindings/js/JSDatabaseSyncCustom.cpp \
    23032304        bindings/js/JSSQLResultSetRowListCustom.cpp \
    2304         bindings/js/JSSQLTransactionCustom.cpp
     2305        bindings/js/JSSQLTransactionCustom.cpp \
     2306        bindings/js/JSSQLTransactionSyncCustom.cpp
    23052307}
    23062308
     
    23262328        storage/SQLTransactionCoordinator.h \
    23272329        storage/SQLTransactionSync.h \
     2330        storage/SQLTransactionSyncCallback.h \
    23282331        storage/StorageArea.h \
    23292332        storage/StorageAreaImpl.h \
  • trunk/WebCore/WebCore.vcproj/WebCore.vcproj

    r58832 r58989  
    25142514                        </File>
    25152515                        <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
    25162572                                RelativePath="$(WebKitOutputDir)\obj\$(ProjectName)\DerivedSources\JSDataGridColumn.cpp"
    25172573                                >
     
    1027610332                        <File
    1027710333                                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"
    1027810390                                >
    1027910391                        </File>
     
    3570035812                                </File>
    3570135813                                <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
    3570235866                                        RelativePath="..\bindings\js\JSDataGridColumnListCustom.cpp"
    3570335867                                        >
     
    3892939093                                <File
    3893039094                                        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"
    3893139147                                        >
    3893239148                                        <FileConfiguration
  • trunk/WebCore/WebCore.xcodeproj/project.pbxproj

    r58832 r58989  
    41694169                B523CF0A1182675400EBB29C /* DatabaseSync.cpp in Sources */ = {isa = PBXBuildFile; fileRef = B523CF031182675400EBB29C /* DatabaseSync.cpp */; };
    41704170                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 */; };
    41714179                B59DD699119029E5007E9684 /* JSDatabaseCallback.h in Headers */ = {isa = PBXBuildFile; fileRef = B59DD697119029E5007E9684 /* JSDatabaseCallback.h */; };
    41724180                B59DD69A119029E5007E9684 /* JSDatabaseCallback.cpp in Sources */ = {isa = PBXBuildFile; fileRef = B59DD698119029E5007E9684 /* JSDatabaseCallback.cpp */; };
     
    95319539                B523CF031182675400EBB29C /* DatabaseSync.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = DatabaseSync.cpp; sourceTree = "<group>"; };
    95329540                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>"; };
    95339552                B59DD68D1190298E007E9684 /* DatabaseCallback.idl */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = DatabaseCallback.idl; sourceTree = "<group>"; };
    95349553                B59DD68E1190298E007E9684 /* SQLStatementCallback.idl */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = SQLStatementCallback.idl; sourceTree = "<group>"; };
     
    1077710796                                B523CF031182675400EBB29C /* DatabaseSync.cpp */,
    1077810797                                B523CF041182675400EBB29C /* DatabaseSync.h */,
     10798                                B55D5ABB1191327200BCC315 /* DatabaseSync.idl */,
    1077910799                                519611E90CAC749C0010A80C /* DatabaseTask.cpp */,
    1078010800                                519611E80CAC749C0010A80C /* DatabaseTask.h */,
     
    1081910839                                B523CF021182675400EBB29C /* SQLTransactionSync.cpp */,
    1082010840                                B523CF011182675400EBB29C /* SQLTransactionSync.h */,
     10841                                B55D5ABC1191327200BCC315 /* SQLTransactionSync.idl */,
    1082110842                                B523CEFF1182675400EBB29C /* SQLTransactionSyncCallback.h */,
     10843                                B55D5ABD1191327200BCC315 /* SQLTransactionSyncCallback.idl */,
    1082210844                                51E3F9C50DA059DC00250911 /* Storage.cpp */,
    1082310845                                51E3F9C40DA059DC00250911 /* Storage.h */,
     
    1410614128                                B59DD6A711902A71007E9684 /* JSSQLStatementErrorCallback.h */,
    1410714129                                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 */,
    1410814136                        );
    1410914137                        name = Storage;
     
    1505015078                        isa = PBXGroup;
    1505115079                        children = (
     15080                                B55D5AA61191325000BCC315 /* JSDatabaseSyncCustom.cpp */,
     15081                                B55D5AA71191325000BCC315 /* JSSQLTransactionSyncCustom.cpp */,
    1505215082                                BC2ED6BB0C6BD2F000920BFF /* JSAttrCustom.cpp */,
    1505315083                                49EED14B1051971900099FAB /* JSCanvasRenderingContext2DCustom.cpp */,
     
    1895418984                                B59DD6A511902A62007E9684 /* JSSQLStatementCallback.h in Headers */,
    1895518985                                B59DD6A911902A71007E9684 /* JSSQLStatementErrorCallback.h in Headers */,
     18986                                B55D5AA4119131FC00BCC315 /* JSSQLTransactionSyncCallback.h in Headers */,
     18987                                B58CEB6911913607002A6790 /* JSDatabaseSync.h in Headers */,
     18988                                B58CEB6D1191361C002A6790 /* JSSQLTransactionSync.h in Headers */,
    1895618989                        );
    1895718990                        runOnlyForDeploymentPostprocessing = 0;
     
    2119621229                                B59DD6A611902A62007E9684 /* JSSQLStatementCallback.cpp in Sources */,
    2119721230                                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 */,
    2119821236                        );
    2119921237                        runOnlyForDeploymentPostprocessing = 0;
  • trunk/WebCore/bindings/js/JSBindingsAllInOne.cpp

    r58801 r58989  
    5252#include "JSDataGridDataSource.cpp"
    5353#include "JSDatabaseCustom.cpp"
     54#include "JSDatabaseSyncCustom.cpp"
    5455#include "JSDedicatedWorkerContextCustom.cpp"
    5556#include "JSDesktopNotificationsCustom.cpp"
     
    103104#include "JSSQLResultSetRowListCustom.cpp"
    104105#include "JSSQLTransactionCustom.cpp"
     106#include "JSSQLTransactionSyncCustom.cpp"
    105107#include "JSSVGElementInstanceCustom.cpp"
    106108#include "JSSVGLengthCustom.cpp"
  • trunk/WebCore/bindings/js/JSWorkerContextCustom.cpp

    r58597 r58989  
    143143#endif
    144144
     145#if ENABLE(DATABASE)
     146JSValue JSWorkerContext::openDatabaseSync(ExecState*, const ArgList&)
     147{
     148    return jsUndefined();
     149}
     150#endif
     151
    145152} // namespace WebCore
    146153
  • trunk/WebCore/bindings/v8/custom/V8WorkerContextCustom.cpp

    r58597 r58989  
    137137}
    138138
     139#if ENABLE(DATABASE)
     140v8::Handle<v8::Value> V8WorkerContext::openDatabaseSyncCallback(const v8::Arguments& args)
     141{
     142    INC_STATS("DOM.V8WorkerContext.openDatabaseSync()");
     143    return v8::Undefined();
     144}
     145#endif
     146
    139147} // namespace WebCore
    140148
  • trunk/WebCore/storage/Database.idl

    r58597 r58989  
    3131    interface [
    3232        Conditional=DATABASE,
    33         OmitConstructor
     33        OmitConstructor,
     34        NoStaticTables
    3435    ] Database {
    3536        readonly attribute DOMString version;
  • trunk/WebCore/storage/DatabaseCallback.h

    r58801 r58989  
    3939
    4040class Database;
     41class DatabaseSync;
    4142class ScriptExecutionContext;
    4243
     
    4546    virtual ~DatabaseCallback() { }
    4647    virtual bool handleEvent(ScriptExecutionContext*, Database*) = 0;
     48    virtual bool handleEvent(ScriptExecutionContext*, DatabaseSync*) = 0;
    4749};
    4850
  • trunk/WebCore/storage/DatabaseCallback.idl

    r58801 r58989  
    3333    ] DatabaseCallback {
    3434        boolean handleEvent(in Database database);
     35        boolean handleEvent(in DatabaseSync database);
    3536    };
    3637}
  • trunk/WebCore/storage/DatabaseSync.cpp

    r58440 r58989  
    9292}
    9393
    94 void DatabaseSync::changeVersion(const String&, const String&, PassRefPtr<SQLTransactionSyncCallback>)
     94void DatabaseSync::changeVersion(const String&, const String&, PassRefPtr<SQLTransactionSyncCallback>, ExceptionCode&)
    9595{
    9696    ASSERT(m_scriptExecutionContext->isContextThread());
    9797}
    9898
    99 void DatabaseSync::transaction(PassRefPtr<SQLTransactionSyncCallback>, bool)
     99void DatabaseSync::transaction(PassRefPtr<SQLTransactionSyncCallback>, bool, ExceptionCode&)
    100100{
    101101    ASSERT(m_scriptExecutionContext->isContextThread());
  • trunk/WebCore/storage/DatabaseSync.h

    r58437 r58989  
    5454                                                     const String& displayName, unsigned long estimatedSize, PassRefPtr<DatabaseCallback>, ExceptionCode&);
    5555    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&);
    5858
    5959    // Internal engine support
  • trunk/WebCore/storage/SQLError.idl

    r58597 r58989  
    3131    interface [
    3232        Conditional=DATABASE,
    33         OmitConstructor
     33        OmitConstructor,
     34        NoStaticTables
    3435    ] SQLError {
    3536        readonly attribute unsigned long code;
  • trunk/WebCore/storage/SQLResultSet.idl

    r58597 r58989  
    3131    interface [
    3232        Conditional=DATABASE,
    33         OmitConstructor
     33        OmitConstructor,
     34        NoStaticTables
    3435    ] SQLResultSet {
    3536        readonly attribute SQLResultSetRowList rows;
  • trunk/WebCore/storage/SQLResultSetRowList.idl

    r58597 r58989  
    3131    interface [
    3232        Conditional=DATABASE,
    33         OmitConstructor
     33        OmitConstructor,
     34        NoStaticTables
    3435    ] SQLResultSetRowList {
    3536        readonly attribute unsigned long length;
  • trunk/WebCore/storage/SQLTransaction.idl

    r58597 r58989  
    3131    interface [
    3232        Conditional=DATABASE,
    33         OmitConstructor
     33        OmitConstructor,
     34        NoStaticTables
    3435    ] SQLTransaction {
    3536        [Custom] void executeSql(in DOMString sqlStatement, in ObjectArray arguments, in SQLStatementCallback callback, in SQLStatementErrorCallback errorCallback);
  • trunk/WebCore/storage/SQLTransactionSyncCallback.h

    r58437 r58989  
    4343public:
    4444    virtual ~SQLTransactionSyncCallback() { }
    45     virtual void handleEvent(ScriptExecutionContext*, SQLTransactionSync*, bool& raisedException) = 0;
     45    virtual bool handleEvent(ScriptExecutionContext*, SQLTransactionSync*) = 0;
    4646};
    4747
  • trunk/WebCore/workers/WorkerContext.cpp

    r58647 r58989  
    282282    return Database::openDatabase(this, name, version, displayName, estimatedSize, creationCallback, ec);
    283283}
     284
     285PassRefPtr<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}
    284298#endif
    285299
  • trunk/WebCore/workers/WorkerContext.h

    r58597 r58989  
    3232#include "AtomicStringHash.h"
    3333#include "Database.h"
     34#include "DatabaseSync.h"
    3435#include "DatabaseCallback.h"
    3536#include "EventListener.h"
     
    106107        // HTML 5 client-side database
    107108        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
    108111        // Not implemented yet.
    109112        virtual bool isDatabaseReadOnly() const { return false; }
  • trunk/WebCore/workers/WorkerContext.idl

    r58597 r58989  
    5050        [Custom] void importScripts(/*[Variadic] in DOMString urls */);
    5151                 attribute [Replaceable] WorkerNavigator navigator;
     52
     53#if defined(ENABLE_DATABASE) && ENABLE_DATABASE
    5254        // 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
    5457
    5558        // Timers
Note: See TracChangeset for help on using the changeset viewer.