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

Unified Diff: third_party/WebKit/public/platform/WebTaskRunner.h

Issue 2357043003: Remove WebCallbackTask (Closed)
Patch Set: fix Created 4 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 | « third_party/WebKit/Source/platform/scheduler/test/fake_web_task_runner.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « third_party/WebKit/Source/platform/scheduler/test/fake_web_task_runner.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698