Chromium Code Reviews| Index: third_party/WebKit/public/platform/WebTaskRunner.h |
| diff --git a/third_party/WebKit/public/platform/WebTaskRunner.h b/third_party/WebKit/public/platform/WebTaskRunner.h |
| index fa2705bc49e088362cb6c46bc38348368cf6ccf8..697cae1c42c8eac92c318e5d140dc2a67710d50d 100644 |
| --- a/third_party/WebKit/public/platform/WebTaskRunner.h |
| +++ b/third_party/WebKit/public/platform/WebTaskRunner.h |
| @@ -40,6 +40,10 @@ public: |
| // Takes ownership of |Task|. Can be called from any thread. |
| virtual void postDelayedTask(const WebTraceLocation&, Task*, double delayMs) = 0; |
| + // Schedule a task to be run on the the associated WebThread. |
| + // Can be called from any thread. |
| + virtual void postTask(const WebTraceLocation&, const base::Closure&) = 0; |
|
alex clarke (OOO till 29th)
2016/09/21 10:38:40
Getting rid of WebCallbackTask is a good idea, but
tzik
2016/09/21 14:32:08
Ah, right. Updated. We can use SingleThreadTaskRun
|
| + |
| // Schedule a task to be run after |delayMs| on the the associated WebThread. |
| // Can be called from any thread. |
| virtual void postDelayedTask(const WebTraceLocation&, const base::Closure&, double delayMs) = 0; |