| Index: sky/engine/public/platform/WebThread.h
|
| diff --git a/sky/engine/public/platform/WebThread.h b/sky/engine/public/platform/WebThread.h
|
| index 60e4731048c75607496dbb4195199fff617afe0d..2095985e23688db9a2a898f3aba16794d1eb1d2b 100644
|
| --- a/sky/engine/public/platform/WebThread.h
|
| +++ b/sky/engine/public/platform/WebThread.h
|
| @@ -44,36 +44,6 @@ public:
|
| virtual ~Task() { }
|
| virtual void run() = 0;
|
| };
|
| -
|
| - class BLINK_PLATFORM_EXPORT TaskObserver {
|
| - public:
|
| - virtual ~TaskObserver() { }
|
| - virtual void willProcessTask() = 0;
|
| - virtual void didProcessTask() = 0;
|
| - };
|
| -
|
| - // postTask() and postDelayedTask() take ownership of the passed Task
|
| - // object. It is safe to invoke postTask() and postDelayedTask() from any
|
| - // thread.
|
| - virtual void postTask(Task*) = 0;
|
| - virtual void postDelayedTask(Task*, long long delayMs) = 0;
|
| -
|
| - virtual bool isCurrentThread() const = 0;
|
| - virtual PlatformThreadId threadId() const { return 0; }
|
| -
|
| - virtual void addTaskObserver(TaskObserver*) { }
|
| - virtual void removeTaskObserver(TaskObserver*) { }
|
| -
|
| - // enterRunLoop() processes tasks posted to this WebThread. This call does not return until some task calls exitRunLoop().
|
| - // WebThread does not support nesting, meaning that once the run loop is entered for a given WebThread it is not valid to
|
| - // call enterRunLoop() again.
|
| - virtual void enterRunLoop() = 0;
|
| -
|
| - // exitRunLoop() runs tasks until there are no tasks available to run, then returns control to the caller of enterRunLoop().
|
| - // Must be called when the WebThread is running.
|
| - virtual void exitRunLoop() = 0;
|
| -
|
| - virtual ~WebThread() { }
|
| };
|
|
|
| } // namespace blink
|
|
|