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

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

Issue 2319053004: [Reland] Make canceling Timers fast. (Closed)
Patch Set: Rebased 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
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 d2f948968cd77482e0233576e9277aaee46ebd9a..fa2705bc49e088362cb6c46bc38348368cf6ccf8 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 after |delayMs| on the the associated WebThread.
+ // Can be called from any thread.
+ virtual void postDelayedTask(const WebTraceLocation&, const base::Closure&, double delayMs) = 0;
+
// Returns a clone of the WebTaskRunner.
virtual std::unique_ptr<WebTaskRunner> clone() = 0;
« no previous file with comments | « third_party/WebKit/Source/web/tests/TimerPerfTest.cpp ('k') | third_party/WebKit/public/platform/scheduler/base/task_queue.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698