2010-05-15 Eric Uhrhane <ericu@chromium.org>
authoreric@webkit.org <eric@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 15 May 2010 16:36:56 +0000 (16:36 +0000)
committereric@webkit.org <eric@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 15 May 2010 16:36:56 +0000 (16:36 +0000)
commite73289ac15d1da294f70d85fe198649b89b6bcf9
tree29ef68bf55611781ca2d582ccfedf9dac9bdf1f8
parent857515df7a3deaf7ed1fdcff01e248d3dadb0da8
2010-05-15  Eric Uhrhane  <ericu@chromium.org>

        Reviewed by Dmitry Titov.

        Add bindings for async DB API in Workers.
        https://bugs.webkit.org/show_bug.cgi?id=34992

        * storage/change-version-handle-reuse.html: Refactored to share code with the worker version of the test.
        * storage/change-version-handle-reuse-expected.html: Removed reference to reloading, which this test doesn't do.
        * storage/change-version-handle-reuse.js: This is the extracted shared core of the test.
        * storage/execute-sql-args.html: Refactored to share code with the worker version of the test.
        * storage/execute-sql-args.js: This is the extracted shared core of the test.

        These are the worker versions of the tests; they're tiny shims around shared code.
        * fast/workers/storage/execute-sql-args-worker-expected.txt: Added.
        * fast/workers/storage/execute-sql-args-worker.html: Added.
        * fast/workers/storage/change-version-handle-reuse-worker-expected.txt: Added.
        * fast/workers/storage/change-version-handle-reuse-worker.html: Added.
        This file gets included from worker database tests; it does all the boilerplate that's needed on the DOM side.
        * fast/workers/storage/resources/database-worker-controller.js: Added.
        This file is the boilerplate for the worker side of the database tests.  It will import and run the actual test on command, and will report back completion and exceptions.
        * fast/workers/storage/resources/database-worker.js: Added.
2010-05-15  Eric Uhrhane  <ericu@chromium.org>

        Reviewed by Dmitry Titov.

        Add bindings for async DB API in Workers.
        https://bugs.webkit.org/show_bug.cgi?id=34992

        Tests: storage/change-version-handle-reuse-worker.html
               storage/execute-sql-args-worker.html

        * bindings/js/JSWorkerContextCustom.cpp: Add openDatabase binding.
        (WebCore::JSWorkerContext::openDatabase):

        * bindings/v8/custom/V8WorkerContextCustom.cpp: Add openDatabase stub; Chromium will need work both in V8 and in the browser process before we can turn this on there.
        (WebCore::V8WorkerContext::openDatabaseCallback):

        Add NoStaticTables flags to all objects now shared with workers.
        * storage/Database.idl:
        * storage/SQLError.idl:
        * storage/SQLResultSet.idl:
        * storage/SQLResultSetRowList.idl:
        * storage/SQLTransaction.idl:

        * workers/WorkerContext.h: Add databaseExceededQuota.
        * workers/WorkerContext.cpp:
        (WebCore::WorkerContext::databaseExceededQuota): Add stub implementation for testing; you just get 5MB for now.
        (WebCore::WorkerContext::openDatabase): Remove invalid assertion.

        Add the IDL for the call to openDatabase.
        * workers/WorkerContext.idl:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@59540 268f45cc-cd09-0410-ab3c-d52691b4dbfc
18 files changed:
LayoutTests/ChangeLog
LayoutTests/fast/workers/storage/change-version-handle-reuse-worker-expected.txt [new file with mode: 0644]
LayoutTests/fast/workers/storage/change-version-handle-reuse-worker.html [new file with mode: 0644]
LayoutTests/fast/workers/storage/execute-sql-args-worker-expected.txt [new file with mode: 0644]
LayoutTests/fast/workers/storage/execute-sql-args-worker.html [new file with mode: 0644]
LayoutTests/fast/workers/storage/resources/database-worker-controller.js [new file with mode: 0644]
LayoutTests/fast/workers/storage/resources/database-worker.js [new file with mode: 0644]
LayoutTests/storage/change-version-handle-reuse-expected.txt
LayoutTests/storage/change-version-handle-reuse.html
LayoutTests/storage/change-version-handle-reuse.js [new file with mode: 0644]
LayoutTests/storage/execute-sql-args.html
LayoutTests/storage/execute-sql-args.js [new file with mode: 0644]
WebCore/ChangeLog
WebCore/bindings/js/JSWorkerContextCustom.cpp
WebCore/bindings/v8/custom/V8WorkerContextCustom.cpp
WebCore/workers/WorkerContext.cpp
WebCore/workers/WorkerContext.h
WebCore/workers/WorkerContext.idl