diff options
author | Feng Qian <fqian@google.com> | 2009-06-17 12:12:20 -0700 |
---|---|---|
committer | Feng Qian <fqian@google.com> | 2009-06-17 12:12:20 -0700 |
commit | 5f1ab04193ad0130ca8204aadaceae083aca9881 (patch) | |
tree | 5a92cd389e2cfe7fb67197ce14b38469462379f8 /WebCore/workers/WorkerMessagingProxy.h | |
parent | 194315e5a908cc8ed67d597010544803eef1ac59 (diff) | |
download | external_webkit-5f1ab04193ad0130ca8204aadaceae083aca9881.zip external_webkit-5f1ab04193ad0130ca8204aadaceae083aca9881.tar.gz external_webkit-5f1ab04193ad0130ca8204aadaceae083aca9881.tar.bz2 |
Get WebKit r44544.
Diffstat (limited to 'WebCore/workers/WorkerMessagingProxy.h')
-rw-r--r-- | WebCore/workers/WorkerMessagingProxy.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/WebCore/workers/WorkerMessagingProxy.h b/WebCore/workers/WorkerMessagingProxy.h index 8d81deb..7fc9797 100644 --- a/WebCore/workers/WorkerMessagingProxy.h +++ b/WebCore/workers/WorkerMessagingProxy.h @@ -31,6 +31,7 @@ #include "ScriptExecutionContext.h" #include "WorkerContextProxy.h" +#include "WorkerLoaderProxy.h" #include "WorkerObjectProxy.h" #include <wtf/Noncopyable.h> #include <wtf/PassRefPtr.h> @@ -44,7 +45,7 @@ namespace WebCore { class Worker; class WorkerThread; - class WorkerMessagingProxy : public WorkerContextProxy, public WorkerObjectProxy, Noncopyable { + class WorkerMessagingProxy : public WorkerContextProxy, public WorkerObjectProxy, public WorkerLoaderProxy, Noncopyable { public: WorkerMessagingProxy(Worker*); @@ -65,9 +66,11 @@ namespace WebCore { virtual void reportPendingActivity(bool hasPendingActivity); virtual void workerContextDestroyed(); - void postTaskToWorkerObject(PassRefPtr<ScriptExecutionContext::Task>); - void postTaskToWorkerContext(PassRefPtr<ScriptExecutionContext::Task>); - void postTaskForModeToWorkerContext(PassRefPtr<ScriptExecutionContext::Task>, const String& mode); + // Implementation of WorkerLoaderProxy. + // These methods are called on different threads to schedule loading + // requests and to send callbacks back to WorkerContext. + virtual void postTaskToLoader(PassRefPtr<ScriptExecutionContext::Task>); + virtual void postTaskForModeToWorkerContext(PassRefPtr<ScriptExecutionContext::Task>, const String& mode); void workerThreadCreated(PassRefPtr<WorkerThread>); |