Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1178)

Unified Diff: public/platform/WebThread.h

Issue 1310253009: Introduce WebTaskRunner Patch 5/5 (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Remove the postTask and postDelayedTask too Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/platform/WebThread.h
diff --git a/public/platform/WebThread.h b/public/platform/WebThread.h
index 0a33daca09b53af5e1b3204d142e4924a197ab94..b84f76ff86ea349268ce91427c0d68baeb3038d6 100644
--- a/public/platform/WebThread.h
+++ b/public/platform/WebThread.h
@@ -50,13 +50,6 @@ 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() { }
- virtual void run() = 0;
- };
-
class BLINK_PLATFORM_EXPORT TaskObserver {
public:
virtual ~TaskObserver() { }
@@ -64,12 +57,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*) { }
- virtual void postDelayedTask(const WebTraceLocation&, Task*, long long delayMs) { };
// Returns a WebTaskRunner bound to the underlying scheduler's default task queue.
virtual WebTaskRunner* taskRunner() { return nullptr; }
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698