| Index: public/platform/WebThread.h
|
| diff --git a/public/platform/WebThread.h b/public/platform/WebThread.h
|
| index 9db90c9bca91e1a79f5b90779736e85150a87b7b..ae9bc1c31518a7aa02c29473834ee589a36766a5 100644
|
| --- a/public/platform/WebThread.h
|
| +++ b/public/platform/WebThread.h
|
| @@ -28,10 +28,6 @@
|
| #include "WebCommon.h"
|
| #include <stdint.h>
|
|
|
| -#ifdef INSIDE_BLINK
|
| -#include "wtf/Functional.h"
|
| -#endif
|
| -
|
| namespace blink {
|
| class WebScheduler;
|
| class WebTaskRunner;
|
| @@ -54,6 +50,7 @@ public:
|
| virtual void run(double deadlineSeconds) = 0;
|
| };
|
|
|
| + // TODO(alexclarke): Remove this once it's no longer referenced by chromium.
|
| class BLINK_PLATFORM_EXPORT Task {
|
| public:
|
| virtual ~Task() { }
|
| @@ -67,14 +64,6 @@ public:
|
| 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.
|
| - // TODO(alexclarke): Remove postTask & postDelayedTask.
|
| - virtual void postTask(const WebTraceLocation&, Task*) = 0;
|
| - virtual void postDelayedTask(const WebTraceLocation&, Task*, long long delayMs) = 0;
|
| -
|
| - // Returns a WebTaskRunner bound to the underlying scheduler's default task queue.
|
| virtual WebTaskRunner* defaultTaskRunner() { return nullptr; }
|
|
|
| virtual bool isCurrentThread() const = 0;
|
| @@ -87,12 +76,6 @@ public:
|
| virtual WebScheduler* scheduler() const = 0;
|
|
|
| virtual ~WebThread() { }
|
| -
|
| -#ifdef INSIDE_BLINK
|
| - // Helpers for posting bound functions as tasks.
|
| - void postTask(const WebTraceLocation&, PassOwnPtr<Function<void()>>);
|
| - void postDelayedTask(const WebTraceLocation&, PassOwnPtr<Function<void()>>, long long delayMs);
|
| -#endif
|
| };
|
|
|
| } // namespace blink
|
|
|