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

Unified Diff: Source/web/ServiceWorkerGlobalScopeProxy.cpp

Issue 137633004: Add WorkerGlobalScope* param to WorkerReportingProxy::workerGlobalScopeStarted (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 11 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/web/ServiceWorkerGlobalScopeProxy.h ('k') | Source/web/WebSharedWorkerImpl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/ServiceWorkerGlobalScopeProxy.cpp
diff --git a/Source/web/ServiceWorkerGlobalScopeProxy.cpp b/Source/web/ServiceWorkerGlobalScopeProxy.cpp
index 0ceb4d3435f70b1190c8cb8ca3f524ec9a8c8a74..706a01ecd433875cad89930765d0320481010217 100644
--- a/Source/web/ServiceWorkerGlobalScopeProxy.cpp
+++ b/Source/web/ServiceWorkerGlobalScopeProxy.cpp
@@ -71,8 +71,10 @@ void ServiceWorkerGlobalScopeProxy::updateInspectorStateCookie(const String& mes
m_client->saveDevToolsAgentState(message);
}
-void ServiceWorkerGlobalScopeProxy::workerGlobalScopeStarted()
+void ServiceWorkerGlobalScopeProxy::workerGlobalScopeStarted(WorkerGlobalScope* workerGlobalScope)
{
+ ASSERT(!m_workerGlobalScope);
+ m_workerGlobalScope = workerGlobalScope;
m_client->workerContextStarted(this);
}
@@ -83,6 +85,7 @@ void ServiceWorkerGlobalScopeProxy::workerGlobalScopeClosed()
void ServiceWorkerGlobalScopeProxy::workerGlobalScopeDestroyed()
{
+ m_workerGlobalScope = 0;
m_client->workerContextDestroyed();
}
@@ -90,6 +93,7 @@ ServiceWorkerGlobalScopeProxy::ServiceWorkerGlobalScopeProxy(WebEmbeddedWorkerIm
: m_embeddedWorker(embeddedWorker)
, m_executionContext(executionContext)
, m_client(client)
+ , m_workerGlobalScope(0)
{
ASSERT(m_client);
}
« no previous file with comments | « Source/web/ServiceWorkerGlobalScopeProxy.h ('k') | Source/web/WebSharedWorkerImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698