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

Unified Diff: third_party/WebKit/Source/core/inspector/WorkerThreadDebugger.cpp

Issue 1728803002: Rename WorkerThread to WorkerScript Base URL: https://chromium.googlesource.com/chromium/src.git@workerscript-controller
Patch Set: Created 4 years, 10 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: third_party/WebKit/Source/core/inspector/WorkerThreadDebugger.cpp
diff --git a/third_party/WebKit/Source/core/inspector/WorkerThreadDebugger.cpp b/third_party/WebKit/Source/core/inspector/WorkerThreadDebugger.cpp
index 3b7c699ede7459e419d450e04f16deace8d764ac..b2940381c825b2c71e369700a1482eb9b1c42c5d 100644
--- a/third_party/WebKit/Source/core/inspector/WorkerThreadDebugger.cpp
+++ b/third_party/WebKit/Source/core/inspector/WorkerThreadDebugger.cpp
@@ -32,16 +32,16 @@
#include "bindings/core/v8/V8ScriptRunner.h"
#include "core/inspector/WorkerDebuggerAgent.h"
-#include "core/workers/WorkerThread.h"
+#include "core/workers/WorkerScript.h"
#include <v8.h>
namespace blink {
static const int workerContextGroupId = 1;
-WorkerThreadDebugger::WorkerThreadDebugger(WorkerThread* workerThread)
+WorkerThreadDebugger::WorkerThreadDebugger(WorkerScript* workerScript)
: ThreadDebugger(v8::Isolate::GetCurrent())
- , m_workerThread(workerThread)
+ , m_workerScript(workerScript)
, m_paused(false)
{
}
@@ -64,13 +64,13 @@ void WorkerThreadDebugger::runMessageLoopOnPause(int contextGroupId)
{
ASSERT(contextGroupId == workerContextGroupId);
m_paused = true;
- WorkerThread::TaskQueueResult result;
- m_workerThread->willRunDebuggerTasks();
+ WorkerScript::TaskQueueResult result;
+ m_workerScript->willRunDebuggerTasks();
do {
- result = m_workerThread->runDebuggerTask();
+ result = m_workerScript->runDebuggerTask();
// Keep waiting until execution is resumed.
- } while (result == WorkerThread::TaskReceived && m_paused);
- m_workerThread->didRunDebuggerTasks();
+ } while (result == WorkerScript::TaskReceived && m_paused);
+ m_workerScript->didRunDebuggerTasks();
}
void WorkerThreadDebugger::quitMessageLoopOnPause()

Powered by Google App Engine
This is Rietveld 408576698