Index: third_party/WebKit/Source/platform/WebTaskRunner.cpp |
diff --git a/third_party/WebKit/Source/platform/WebTaskRunner.cpp b/third_party/WebKit/Source/platform/WebTaskRunner.cpp |
index e44dc1c6aed4b5fe8d55c150f2a306dcac845b34..1d2f7978989d1ec3397ae020f17bcb2242a9054d 100644 |
--- a/third_party/WebKit/Source/platform/WebTaskRunner.cpp |
+++ b/third_party/WebKit/Source/platform/WebTaskRunner.cpp |
@@ -8,19 +8,24 @@ |
namespace blink { |
-void WebTaskRunner::postTask(const WebTraceLocation& location, PassOwnPtr<ClosureTask> task) |
+void WebTaskRunner::postTask(const WebTraceLocation& location, PassOwnPtr<CrossThreadClosure> task) |
{ |
- postTask(std::move(location), new blink::Task(std::move(task))); |
+ postTask(location, new CrossThreadTask(std::move(task))); |
} |
-void WebTaskRunner::postDelayedTask(const WebTraceLocation& location, PassOwnPtr <ClosureTask> task, long long delayMs) |
+void WebTaskRunner::postDelayedTask(const WebTraceLocation& location, PassOwnPtr<CrossThreadClosure> task, long long delayMs) |
{ |
- postDelayedTask(location, new blink::Task(std::move(task)), delayMs); |
+ postDelayedTask(location, new CrossThreadTask(std::move(task)), delayMs); |
} |
-void WebTaskRunner::postDelayedTask(const WebTraceLocation& location, PassOwnPtr <ClosureTask> task, double delayMs) |
+void WebTaskRunner::postTask(const WebTraceLocation& location, PassOwnPtr<SameThreadClosure> task) |
{ |
- postDelayedTask(location, new blink::Task(std::move(task)), delayMs); |
+ postTask(location, new SameThreadTask(std::move(task))); |
+} |
+ |
+void WebTaskRunner::postDelayedTask(const WebTraceLocation& location, PassOwnPtr <SameThreadClosure> task, long long delayMs) |
+{ |
+ postDelayedTask(location, new SameThreadTask(std::move(task)), delayMs); |
} |
} // namespace blink |