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

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: Add missing #include 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 | « Source/platform/WebScheduler.cpp ('k') | Source/platform/WebThread.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/WebTaskRunner.cpp
diff --git a/Source/platform/WebTaskRunner.cpp b/Source/platform/WebTaskRunner.cpp
index a6b0a37edec8cc5cff8af7ac2ba5603184262023..435a90c8756e5d32253ca9947cc95f9c6dcf0533 100644
--- a/Source/platform/WebTaskRunner.cpp
+++ b/Source/platform/WebTaskRunner.cpp
@@ -9,6 +9,19 @@
namespace blink {
-// TODO(alexclarke): Add 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
« no previous file with comments | « Source/platform/WebScheduler.cpp ('k') | Source/platform/WebThread.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698