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

Unified Diff: Source/platform/WebTaskRunner.cpp

Issue 1303153005: Introduce WebTaskRunner Patch 3/5 (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 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
Index: Source/platform/WebTaskRunner.cpp
diff --git a/Source/platform/WebTaskRunner.cpp b/Source/platform/WebTaskRunner.cpp
index 882b359dd7ca58eabf5fc8cd8cd38eb8ff5c595d..435a90c8756e5d32253ca9947cc95f9c6dcf0533 100644
--- a/Source/platform/WebTaskRunner.cpp
+++ b/Source/platform/WebTaskRunner.cpp
@@ -9,6 +9,19 @@
namespace blink {
-// TODO(alexclarke): dd helpers for posting bound functions as tasks.
+void WebTaskRunner::postTask(const WebTraceLocation& location, PassOwnPtr<ClosureTask> task)
+{
+ postTask(location, new blink::Task(task));
+}
+
+void WebTaskRunner::postDelayedTask(const WebTraceLocation& location, PassOwnPtr <ClosureTask> task, long long delayMs)
+{
+ postDelayedTask(location, new blink::Task(task), delayMs);
+}
+
+void WebTaskRunner::postDelayedTask(const WebTraceLocation& location, PassOwnPtr <ClosureTask> task, double delayMs)
+{
+ postDelayedTask(location, new blink::Task(task), delayMs);
+}
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698