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

Unified Diff: Source/bindings/v8/WorkerScriptDebugServer.cpp

Issue 17648006: Rename WorkerContext to WorkerGlobalScope (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase on master Created 7 years, 6 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: Source/bindings/v8/WorkerScriptDebugServer.cpp
diff --git a/Source/bindings/v8/WorkerScriptDebugServer.cpp b/Source/bindings/v8/WorkerScriptDebugServer.cpp
index 524eabdf731c77f212a9d9d7f0da79caa23e471e..c2aaa0dc4c893168de23b0dcb08cbba7a82503af 100644
--- a/Source/bindings/v8/WorkerScriptDebugServer.cpp
+++ b/Source/bindings/v8/WorkerScriptDebugServer.cpp
@@ -34,7 +34,7 @@
#include "bindings/v8/V8ScriptRunner.h"
#include "core/inspector/ScriptDebugListener.h"
#include "core/inspector/WorkerDebuggerAgent.h"
-#include "core/workers/WorkerContext.h"
+#include "core/workers/WorkerGlobalScope.h"
#include "core/workers/WorkerThread.h"
#include <v8.h>
#include "wtf/MessageQueue.h"
@@ -42,10 +42,10 @@
namespace WebCore {
-WorkerScriptDebugServer::WorkerScriptDebugServer(WorkerContext* workerContext, const String& mode)
+WorkerScriptDebugServer::WorkerScriptDebugServer(WorkerGlobalScope* workerGlobalScope, const String& mode)
: ScriptDebugServer(v8::Isolate::GetCurrent())
, m_listener(0)
- , m_workerContext(workerContext)
+ , m_workerGlobalScope(workerGlobalScope)
, m_debuggerTaskMode(mode)
{
ASSERT(m_isolate);
@@ -98,7 +98,7 @@ void WorkerScriptDebugServer::runMessageLoopOnPause(v8::Handle<v8::Context>)
{
MessageQueueWaitResult result;
do {
- result = m_workerContext->thread()->runLoop().runInMode(m_workerContext, m_debuggerTaskMode);
+ result = m_workerGlobalScope->thread()->runLoop().runInMode(m_workerGlobalScope, m_debuggerTaskMode);
// Keep waiting until execution is resumed.
} while (result == MessageQueueMessageReceived && isPaused());
« no previous file with comments | « Source/bindings/v8/WorkerScriptDebugServer.h ('k') | Source/bindings/v8/custom/V8DedicatedWorkerContextCustom.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698