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

Unified Diff: content/browser/service_worker/embedded_worker_instance.h

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/embedded_worker_instance.h
diff --git a/content/browser/service_worker/embedded_worker_instance.h b/content/browser/service_worker/embedded_worker_instance.h
index 80e704091c4a30d8d21866f6fb7b38df153b37e2..9abde460397710cf4f1bf1d802260d5b793b97de 100644
--- a/content/browser/service_worker/embedded_worker_instance.h
+++ b/content/browser/service_worker/embedded_worker_instance.h
@@ -147,18 +147,17 @@ class CONTENT_EXPORT EmbeddedWorkerInstance {
void OnReadyForInspection();
// Called back from Registry when the worker instance has ack'ed that
- // it finished loading the script.
- void OnScriptLoaded();
+ // it finished loading the script and has started a worker thread.
+ void OnScriptLoaded(int thread_id);
// Called back from Registry when the worker instance has ack'ed that
// it failed to load the script.
void OnScriptLoadFailed();
// Called back from Registry when the worker instance has ack'ed that
- // its WorkerGlobalScope is actually started and parsed on |thread_id| in the
- // child process.
+ // its WorkerGlobalScope is actually started and parsed.
// This will change the internal status from STARTING to RUNNING.
- void OnStarted(int thread_id);
+ void OnStarted();
void OnPausedAfterDownload();

Powered by Google App Engine
This is Rietveld 408576698