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

Unified Diff: content/browser/service_worker/service_worker_dispatcher_host.cc

Issue 489253002: Allow the browser to Send messages to an embedded worker once the script as been loaded without hav… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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: content/browser/service_worker/service_worker_dispatcher_host.cc
diff --git a/content/browser/service_worker/service_worker_dispatcher_host.cc b/content/browser/service_worker/service_worker_dispatcher_host.cc
index 0f73fed53c57c348c773818854d7c7d64749097a..4c7b8cccc4b5b7fa18b0df32245757aa7bf8aad5 100644
--- a/content/browser/service_worker/service_worker_dispatcher_host.cc
+++ b/content/browser/service_worker/service_worker_dispatcher_host.cc
@@ -393,13 +393,15 @@ void ServiceWorkerDispatcherHost::OnWorkerReadyForInspection(
registry->OnWorkerReadyForInspection(render_process_id_, embedded_worker_id);
}
-void ServiceWorkerDispatcherHost::OnWorkerScriptLoaded(int embedded_worker_id) {
+void ServiceWorkerDispatcherHost::OnWorkerScriptLoaded(
+ int embedded_worker_id, int thread_id) {
nasko 2014/08/26 15:58:24 style: if params are on new line, they should all
if (!GetContext())
return;
EmbeddedWorkerRegistry* registry = GetContext()->embedded_worker_registry();
if (!registry->CanHandle(embedded_worker_id))
return;
- registry->OnWorkerScriptLoaded(render_process_id_, embedded_worker_id);
+ registry->OnWorkerScriptLoaded(
+ render_process_id_, thread_id, embedded_worker_id);
}
void ServiceWorkerDispatcherHost::OnWorkerScriptLoadFailed(
@@ -412,14 +414,13 @@ void ServiceWorkerDispatcherHost::OnWorkerScriptLoadFailed(
registry->OnWorkerScriptLoadFailed(render_process_id_, embedded_worker_id);
}
-void ServiceWorkerDispatcherHost::OnWorkerStarted(
- int thread_id, int embedded_worker_id) {
+void ServiceWorkerDispatcherHost::OnWorkerStarted(int embedded_worker_id) {
if (!GetContext())
return;
EmbeddedWorkerRegistry* registry = GetContext()->embedded_worker_registry();
if (!registry->CanHandle(embedded_worker_id))
return;
- registry->OnWorkerStarted(render_process_id_, thread_id, embedded_worker_id);
+ registry->OnWorkerStarted(render_process_id_, embedded_worker_id);
}
void ServiceWorkerDispatcherHost::OnWorkerStopped(int embedded_worker_id) {

Powered by Google App Engine
This is Rietveld 408576698