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

Unified Diff: Source/core/inspector/WorkerDebuggerAgent.cpp

Issue 1128273005: Devtools: Move runMessageLoopOnPause and other methods on ScriptDebugServer::Client (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix ownptrs Created 5 years, 7 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/core/inspector/WorkerDebuggerAgent.cpp
diff --git a/Source/core/inspector/WorkerDebuggerAgent.cpp b/Source/core/inspector/WorkerDebuggerAgent.cpp
index 050d3069a31fa718d286475782571376132488ff..7026b98549ca49054ffef4f9069325734571b16b 100644
--- a/Source/core/inspector/WorkerDebuggerAgent.cpp
+++ b/Source/core/inspector/WorkerDebuggerAgent.cpp
@@ -68,7 +68,7 @@ PassOwnPtrWillBeRawPtr<WorkerDebuggerAgent> WorkerDebuggerAgent::create(WorkerSc
}
WorkerDebuggerAgent::WorkerDebuggerAgent(WorkerScriptDebugServer* scriptDebugServer, WorkerGlobalScope* inspectedWorkerGlobalScope, InjectedScriptManager* injectedScriptManager)
- : InspectorDebuggerAgent(injectedScriptManager, scriptDebugServer->isolate())
+ : InspectorDebuggerAgent(injectedScriptManager, scriptDebugServer->scriptDebugServer()->isolate())
, m_scriptDebugServer(scriptDebugServer)
, m_inspectedWorkerGlobalScope(inspectedWorkerGlobalScope)
{
@@ -91,17 +91,17 @@ void WorkerDebuggerAgent::interruptAndDispatchInspectorCommands()
void WorkerDebuggerAgent::startListeningScriptDebugServer()
{
- scriptDebugServer().addListener(this);
+ m_scriptDebugServer->addListener(this);
}
void WorkerDebuggerAgent::stopListeningScriptDebugServer()
{
- scriptDebugServer().removeListener(this);
+ m_scriptDebugServer->removeListener(this);
}
-WorkerScriptDebugServer& WorkerDebuggerAgent::scriptDebugServer()
+ScriptDebugServer& WorkerDebuggerAgent::scriptDebugServer()
{
- return *m_scriptDebugServer;
+ return *(m_scriptDebugServer->scriptDebugServer());
}
InjectedScript WorkerDebuggerAgent::injectedScriptForEval(ErrorString* error, const int* executionContextId)

Powered by Google App Engine
This is Rietveld 408576698