| Index: Source/core/workers/WorkerRunLoop.h
|
| diff --git a/Source/core/workers/WorkerRunLoop.h b/Source/core/workers/WorkerRunLoop.h
|
| index cea5b82beb303fcebb5e097b21d9ec2e9bdca5e4..5180eb93e0402b08325eebfef8c2dd2124456963 100644
|
| --- a/Source/core/workers/WorkerRunLoop.h
|
| +++ b/Source/core/workers/WorkerRunLoop.h
|
| @@ -39,7 +39,7 @@
|
| namespace WebCore {
|
|
|
| class ModePredicate;
|
| - class WorkerContext;
|
| + class WorkerGlobalScope;
|
| class WorkerSharedTimer;
|
|
|
| class WorkerRunLoop {
|
| @@ -48,12 +48,12 @@ namespace WebCore {
|
| ~WorkerRunLoop();
|
|
|
| // Blocking call. Waits for tasks and timers, invokes the callbacks.
|
| - void run(WorkerContext*);
|
| + void run(WorkerGlobalScope*);
|
|
|
| enum WaitMode { WaitForMessage, DontWaitForMessage };
|
|
|
| // Waits for a single task and returns.
|
| - MessageQueueWaitResult runInMode(WorkerContext*, const String& mode, WaitMode = WaitForMessage);
|
| + MessageQueueWaitResult runInMode(WorkerGlobalScope*, const String& mode, WaitMode = WaitForMessage);
|
|
|
| void terminate();
|
| bool terminated() const { return m_messageQueue.killed(); }
|
| @@ -83,11 +83,11 @@ namespace WebCore {
|
|
|
| private:
|
| friend class RunLoopSetup;
|
| - MessageQueueWaitResult runInMode(WorkerContext*, const ModePredicate&, WaitMode);
|
| + MessageQueueWaitResult runInMode(WorkerGlobalScope*, const ModePredicate&, WaitMode);
|
|
|
| // Runs any clean up tasks that are currently in the queue and returns.
|
| // This should only be called when the context is closed or loop has been terminated.
|
| - void runCleanupTasks(WorkerContext*);
|
| + void runCleanupTasks(WorkerGlobalScope*);
|
|
|
| void idleNotification(double idlenessInterval);
|
|
|
|
|