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

Unified Diff: third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerGlobalScopeProxy.cpp

Issue 2951833002: [DevTools] Support multiple sessions in dedicated workers (Closed)
Patch Set: Created 3 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
« no previous file with comments | « third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerGlobalScopeProxy.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerGlobalScopeProxy.cpp
diff --git a/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerGlobalScopeProxy.cpp b/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerGlobalScopeProxy.cpp
index 45e215bb62c41e3f4ae2f87924e97159273e6a58..8cf550e607715afabfeba1387a05f309b77a5159 100644
--- a/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerGlobalScopeProxy.cpp
+++ b/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerGlobalScopeProxy.cpp
@@ -511,6 +511,7 @@ void ServiceWorkerGlobalScopeProxy::ReportConsoleMessage(
}
void ServiceWorkerGlobalScopeProxy::PostMessageToPageInspector(
+ int session_id,
const String& message) {
DCHECK(embedded_worker_);
// The TaskType of Inspector tasks need to be Unthrottled because they need to
@@ -519,7 +520,8 @@ void ServiceWorkerGlobalScopeProxy::PostMessageToPageInspector(
->PostTask(
BLINK_FROM_HERE,
CrossThreadBind(&WebEmbeddedWorkerImpl::PostMessageToPageInspector,
- CrossThreadUnretained(embedded_worker_), message));
+ CrossThreadUnretained(embedded_worker_), session_id,
+ message));
}
void ServiceWorkerGlobalScopeProxy::DidCreateWorkerGlobalScope(
« no previous file with comments | « third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerGlobalScopeProxy.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698