Introduce WebTaskRunner Patch 5/5

Remove obsolete WebThread::Task class.

Patch 1: https://codereview.chromium.org/1325073002
Patch 2: https://codereview.chromium.org/1308183005
Patch 3: https://codereview.chromium.org/1303153005
Patch 4: https://codereview.chromium.org/1309423004

BUG=510398, 497761

Review URL: https://codereview.chromium.org/1310253009

git-svn-id: svn://svn.chromium.org/blink/trunk@201812 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent abc75960
...@@ -50,13 +50,6 @@ public: ...@@ -50,13 +50,6 @@ public:
virtual void run(double deadlineSeconds) = 0; 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() { }
virtual void run() = 0;
};
class BLINK_PLATFORM_EXPORT TaskObserver { class BLINK_PLATFORM_EXPORT TaskObserver {
public: public:
virtual ~TaskObserver() { } virtual ~TaskObserver() { }
...@@ -64,12 +57,6 @@ public: ...@@ -64,12 +57,6 @@ public:
virtual void didProcessTask() = 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.
// TODO(alexclarke): Remove postTask & postDelayedTask.
virtual void postTask(const WebTraceLocation&, Task*) { }
virtual void postDelayedTask(const WebTraceLocation&, Task*, long long delayMs) { };
// Returns a WebTaskRunner bound to the underlying scheduler's default task queue. // Returns a WebTaskRunner bound to the underlying scheduler's default task queue.
virtual WebTaskRunner* taskRunner() { return nullptr; } virtual WebTaskRunner* taskRunner() { return nullptr; }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment