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

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

Issue 1992933002: Introduce WorkletGlobalScopeProxy interface. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix tests. Created 4 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: 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 a6ae1745821100f6b4179715a1c2ed34d4a47bea..ec17dfd1fbaefe5e7e356af6ba51af9db51e6081 100644
--- a/third_party/WebKit/Source/core/inspector/WorkerThreadDebugger.cpp
+++ b/third_party/WebKit/Source/core/inspector/WorkerThreadDebugger.cpp
@@ -32,7 +32,7 @@
#include "bindings/core/v8/ScriptState.h"
#include "bindings/core/v8/V8ScriptRunner.h"
-#include "core/workers/WorkerThread.h"
+#include "core/workers/WorkerOrWorkletThread.h"
#include <v8.h>
namespace blink {
@@ -48,7 +48,7 @@ WorkerThreadDebugger* WorkerThreadDebugger::from(v8::Isolate* isolate)
return static_cast<WorkerThreadDebugger*>(data->threadDebugger());
}
-WorkerThreadDebugger::WorkerThreadDebugger(WorkerThread* workerThread, v8::Isolate* isolate)
+WorkerThreadDebugger::WorkerThreadDebugger(WorkerOrWorkletThread* workerThread, v8::Isolate* isolate)
: ThreadDebugger(isolate)
, m_workerThread(workerThread)
{
@@ -60,7 +60,7 @@ WorkerThreadDebugger::~WorkerThreadDebugger()
void WorkerThreadDebugger::contextCreated(v8::Local<v8::Context> context)
{
- debugger()->contextCreated(V8ContextInfo(context, workerContextGroupId, true, m_workerThread->workerGlobalScope()->url().getString(), "", "", false));
+ debugger()->contextCreated(V8ContextInfo(context, workerContextGroupId, true, m_workerThread->globalScope()->url().getString(), "", "", false));
}
void WorkerThreadDebugger::contextWillBeDestroyed(v8::Local<v8::Context> context)
@@ -92,7 +92,7 @@ bool WorkerThreadDebugger::callingContextCanAccessContext(v8::Local<v8::Context>
int WorkerThreadDebugger::ensureDefaultContextInGroup(int contextGroupId)
{
ASSERT(contextGroupId == workerContextGroupId);
- ScriptState* scriptState = m_workerThread->workerGlobalScope()->scriptController()->getScriptState();
+ ScriptState* scriptState = m_workerThread->globalScope()->scriptController()->getScriptState();
if (!scriptState)
return 0;
v8::HandleScope scopes(scriptState->isolate());

Powered by Google App Engine
This is Rietveld 408576698