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

Unified Diff: public/platform/WebThread.h

Issue 1325073002: Introduce WebTaskRunner Patch 1/5 (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix comment 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 | « public/platform/WebTaskRunner.h ('k') | 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 9c7612534d28161ac781432d4390d15925ffae0f..51f204b49c7f448e75445e5258fa6470e871be3f 100644
--- a/public/platform/WebThread.h
+++ b/public/platform/WebThread.h
@@ -34,6 +34,7 @@
namespace blink {
class WebScheduler;
+class WebTaskRunner;
class WebTraceLocation;
// Always an integer value.
@@ -69,9 +70,13 @@ public:
// 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* taskRunner() { return nullptr; }
+
virtual bool isCurrentThread() const = 0;
virtual PlatformThreadId threadId() const { return 0; }
« no previous file with comments | « public/platform/WebTaskRunner.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698