Skip to content
  • eric@webkit.org's avatar
    2010-05-27 Eric Uhrhane <ericu@chromium.org> · d72d2928
    eric@webkit.org authored
            Reviewed by Adam Barth.
    
            Add v8 bindings for async DB API in workers
            https://bugs.webkit.org/show_bug.cgi?id=39145
    
            No new tests.  This should share layout tests with JSC.
    
            Tweak the callback generation to switch lots of Frame* to ScriptExecutionContext*, and use the context passed in to handleEvent where possible.
            * bindings/scripts/CodeGeneratorV8.pm:
    
            As with CodeGeneratorV8; these are pretty much all tiny tweaks.
            We do have to use a slightly different patch for callback invocation in invokeCallback, as V8Proxy::retrieve() doesn't work in the worker context.
            * bindings/v8/custom/V8CustomPositionCallback.cpp:
            (WebCore::V8CustomPositionCallback::handleEvent):
            * bindings/v8/custom/V8CustomPositionErrorCallback.cpp:
            (WebCore::V8CustomPositionErrorCallback::handleEvent):
            * bindings/v8/custom/V8CustomSQLStatementErrorCallback.cpp:
            (WebCore::V8SQLStatementErrorCallback::handleEvent):
            * bindings/v8/custom/V8CustomVoidCallback.cpp:
            (WebCore::V8CustomVoidCallback::V8CustomVoidCallback):
            (WebCore::V8CustomVoidCallback::handleEvent):
            (WebCore::invokeCallback):
            * bindings/v8/custom/V8CustomVoidCallback.h:
            (WebCore::V8CustomVoidCallback::create):
            * bindings/v8/custom/V8DOMWindowCustom.cpp:
            (WebCore::V8DOMWindow::openDatabaseCallback):
            * bindings/v8/custom/V8DatabaseCustom.cpp:
            (WebCore::V8Database::changeVersionCallback):
            (WebCore::createTransaction):
            * bindings/v8/custom/V8DatabaseSyncCustom.cpp:
            (WebCore::V8DatabaseSync::changeVersionCallback):
            (WebCore::createTransaction):
            * bindings/v8/custom/V8NotificationCenterCustom.cpp:
            (WebCore::V8NotificationCenter::requestPermissionCallback):
            * bindings/v8/custom/V8SQLTransactionCustom.cpp:
            (WebCore::V8SQLTransaction::executeSqlCallback):
    
            Add openDatabaseCallback.
            * bindings/v8/custom/V8WorkerContextCustom.cpp:
            (WebCore::V8WorkerContext::openDatabaseCallback):
            Remove an obsolete parameter.
            (WebCore::V8WorkerContext::openDatabaseSyncCallback):
    2010-05-27  Eric Uhrhane  <ericu@chromium.org>
    
            Reviewed by Adam Barth.
    
            Add v8 bindings for async DB API in workers
            https://bugs.webkit.org/show_bug.cgi?id=39145
    
            * src/DatabaseObserver.cpp:
            We should check that we're on the context thread now, not the main
            thread.
            (WebCore::DatabaseObserver::databaseOpened):
            (WebCore::DatabaseObserver::databaseModified):
            (WebCore::DatabaseObserver::databaseClosed):
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@60330 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    d72d2928