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

Unified Diff: Source/core/workers/WorkerThread.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/workers/WorkerThread.h ('k') | Source/core/workers/WorkerThreadTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/workers/WorkerThread.cpp
diff --git a/Source/core/workers/WorkerThread.cpp b/Source/core/workers/WorkerThread.cpp
index e8c44a3c863da1942fe14243d6b8ba1f3218c482..e41714129c087c0b0e37d16e7f6658d74b14b954 100644
--- a/Source/core/workers/WorkerThread.cpp
+++ b/Source/core/workers/WorkerThread.cpp
@@ -110,7 +110,7 @@ unsigned WorkerThread::workerThreadCount()
return workerThreads().size();
}
-class WorkerThreadTask : public WebThread::Task {
+class WorkerThreadTask : public WebTaskRunner::Task {
WTF_MAKE_NONCOPYABLE(WorkerThreadTask); WTF_MAKE_FAST_ALLOCATED(WorkerThreadTask);
public:
static PassOwnPtr<WorkerThreadTask> create(WorkerThread& workerThread, PassOwnPtr<ExecutionContextTask> task, bool isInstrumented)
@@ -475,7 +475,7 @@ void WorkerThread::terminateV8Execution()
v8::V8::TerminateExecution(m_isolate);
}
-void WorkerThread::appendDebuggerTask(PassOwnPtr<WebThread::Task> task)
+void WorkerThread::appendDebuggerTask(PassOwnPtr<WebTaskRunner::Task> task)
{
{
MutexLocker lock(m_threadStateMutex);
@@ -489,8 +489,8 @@ MessageQueueWaitResult WorkerThread::runDebuggerTask(WaitMode waitMode)
{
ASSERT(isCurrentThread());
MessageQueueWaitResult result;
- double absoluteTime = MessageQueue<WebThread::Task>::infiniteTime();
- OwnPtr<WebThread::Task> task;
+ double absoluteTime = MessageQueue<WebTaskRunner::Task>::infiniteTime();
+ OwnPtr<WebTaskRunner::Task> task;
{
if (waitMode == DontWaitForMessage)
absoluteTime = 0.0;
« no previous file with comments | « Source/core/workers/WorkerThread.h ('k') | Source/core/workers/WorkerThreadTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698