2009-02-02 David Levin <levin@chromium.org>
authorap@webkit.org <ap@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 3 Feb 2009 07:38:38 +0000 (07:38 +0000)
committerap@webkit.org <ap@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 3 Feb 2009 07:38:38 +0000 (07:38 +0000)
commit7b0ffc7d53905240d6d387c967a3d6f16c6b3260
tree84c972c1fe621a3273097a3aefb9d2bb805a30ae
parentb217765ca903f169b1da478fcfffb8af51c0d1e8
2009-02-02  David Levin  <levin@chromium.org>

        Reviewed by Alexey Proskuryakov.

        Bug 23636: Make the async api of ThreadableLoader functional for the worker context.
        <https://bugs.webkit.org/show_bug.cgi?id=23636>

        No observable change in behavior, so no test.

        * WebCore.xcodeproj/project.pbxproj:
        * dom/Worker.cpp:
        * dom/Worker.h:
        * dom/WorkerContext.cpp:
        (WebCore::WorkerContext::addMessage):
        (WebCore::WorkerContext::postTask):
        (WebCore::WorkerContext::postTaskToWorkerObject):
        * dom/WorkerContext.h:
        * dom/WorkerMessagingProxy.cpp:
        (WebCore::MessageWorkerContextTask::performTask):
        (WebCore::WorkerMessagingProxy::postMessageToWorkerContext):
        (WebCore::WorkerMessagingProxy::postTaskToWorkerContext):
        Expose postTaskToWorkerContext for use by the worker object thread.

        (WebCore::WorkerMessagingProxy::postTaskToWorkerObject):
        Change the name of postTaskToParentContext to postTaskToWorkerObject for consistency
        with postMessageToWorkerObject.

        * dom/WorkerMessagingProxy.h:
        * dom/WorkerRunLoop.cpp:
        (WebCore::WorkerRunLoop::run):
        (WebCore::WorkerRunLoop::postTask):
        * dom/WorkerRunLoop.h:
        * dom/WorkerTask.cpp: Removed.
        * dom/WorkerTask.h: Removed.
        Removed WorkerTask and replaced with the existing ScriptExecutionContext::Task.

        The resulted in the class going away along with an adapter that made
        a ScriptExecutionContext::Task look like a WorkerTask.

        * dom/WorkerThread.cpp:
        * dom/WorkerThread.h:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@40526 268f45cc-cd09-0410-ab3c-d52691b4dbfc
14 files changed:
WebCore/ChangeLog
WebCore/WebCore.xcodeproj/project.pbxproj
WebCore/dom/Worker.cpp
WebCore/dom/Worker.h
WebCore/dom/WorkerContext.cpp
WebCore/dom/WorkerContext.h
WebCore/dom/WorkerMessagingProxy.cpp
WebCore/dom/WorkerMessagingProxy.h
WebCore/dom/WorkerRunLoop.cpp
WebCore/dom/WorkerRunLoop.h
WebCore/dom/WorkerTask.cpp [deleted file]
WebCore/dom/WorkerTask.h [deleted file]
WebCore/dom/WorkerThread.cpp
WebCore/dom/WorkerThread.h