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

Unified Diff: Source/core/dom/Microtask.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/core/dom/Microtask.h ('k') | Source/core/dom/ScriptRunner.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/Microtask.cpp
diff --git a/Source/core/dom/Microtask.cpp b/Source/core/dom/Microtask.cpp
index 833bccb8714d5c9146e7190a6b95396e89b5a0bf..1f7c3f79acc5d83ed569d1ed91b0df4b47e1c199 100644
--- a/Source/core/dom/Microtask.cpp
+++ b/Source/core/dom/Microtask.cpp
@@ -35,7 +35,7 @@
#include "bindings/core/v8/V8RecursionScope.h"
#include "platform/ScriptForbiddenScope.h"
#include "platform/Task.h"
-#include "public/platform/WebThread.h"
+#include "public/platform/WebTaskRunner.h"
#include <v8.h>
namespace blink {
@@ -62,11 +62,11 @@ bool Microtask::performingCheckpoint(v8::Isolate* isolate)
static void microtaskFunctionCallback(void* data)
{
- OwnPtr<WebThread::Task> task = adoptPtr(static_cast<WebThread::Task*>(data));
+ OwnPtr<WebTaskRunner::Task> task = adoptPtr(static_cast<WebTaskRunner::Task*>(data));
task->run();
}
-void Microtask::enqueueMicrotask(PassOwnPtr<WebThread::Task> callback)
+void Microtask::enqueueMicrotask(PassOwnPtr<WebTaskRunner::Task> callback)
{
v8::Isolate* isolate = v8::Isolate::GetCurrent();
isolate->EnqueueMicrotask(&microtaskFunctionCallback, callback.leakPtr());
« no previous file with comments | « Source/core/dom/Microtask.h ('k') | Source/core/dom/ScriptRunner.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698