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

Side by Side Diff: content/browser/service_worker/embedded_worker_instance.h

Issue 268753004: Add WorkerScriptLoaded message to support attaching DevTools while starting ServiceWorker. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: incorporated nasko's comment Created 6 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 unified diff | Download patch
« no previous file with comments | « no previous file | content/browser/service_worker/embedded_worker_instance.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_BROWSER_SERVICE_WORKER_EMBEDDED_WORKER_INSTANCE_H_ 5 #ifndef CONTENT_BROWSER_SERVICE_WORKER_EMBEDDED_WORKER_INSTANCE_H_
6 #define CONTENT_BROWSER_SERVICE_WORKER_EMBEDDED_WORKER_INSTANCE_H_ 6 #define CONTENT_BROWSER_SERVICE_WORKER_EMBEDDED_WORKER_INSTANCE_H_
7 7
8 #include <map> 8 #include <map>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 EmbeddedWorkerInstance(EmbeddedWorkerRegistry* registry, 114 EmbeddedWorkerInstance(EmbeddedWorkerRegistry* registry,
115 int embedded_worker_id); 115 int embedded_worker_id);
116 116
117 // Called back from EmbeddedWorkerRegistry after Start() passes control to the 117 // Called back from EmbeddedWorkerRegistry after Start() passes control to the
118 // UI thread to acquire a reference to the process. 118 // UI thread to acquire a reference to the process.
119 void RecordProcessId(int process_id, 119 void RecordProcessId(int process_id,
120 ServiceWorkerStatusCode status, 120 ServiceWorkerStatusCode status,
121 int worker_devtools_agent_route_id); 121 int worker_devtools_agent_route_id);
122 122
123 // Called back from Registry when the worker instance has ack'ed that 123 // Called back from Registry when the worker instance has ack'ed that
124 // its WorkerGlobalScope is actually started on |thread_id| in the 124 // it finished loading the script.
125 void OnScriptLoaded();
126
127 // Called back from Registry when the worker instance has ack'ed that
128 // it failed to load the script.
129 void OnScriptLoadFailed();
130
131 // Called back from Registry when the worker instance has ack'ed that
132 // its WorkerGlobalScope is actually started and parsed on |thread_id| in the
125 // child process. 133 // child process.
126 // This will change the internal status from STARTING to RUNNING. 134 // This will change the internal status from STARTING to RUNNING.
127 void OnStarted(int thread_id); 135 void OnStarted(int thread_id);
128 136
129 // Called back from Registry when the worker instance has ack'ed that 137 // Called back from Registry when the worker instance has ack'ed that
130 // its WorkerGlobalScope is actually stopped in the child process. 138 // its WorkerGlobalScope is actually stopped in the child process.
131 // This will change the internal status from STARTING or RUNNING to 139 // This will change the internal status from STARTING or RUNNING to
132 // STOPPED. 140 // STOPPED.
133 void OnStopped(); 141 void OnStopped();
134 142
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 174
167 ProcessRefMap process_refs_; 175 ProcessRefMap process_refs_;
168 ListenerList listener_list_; 176 ListenerList listener_list_;
169 177
170 DISALLOW_COPY_AND_ASSIGN(EmbeddedWorkerInstance); 178 DISALLOW_COPY_AND_ASSIGN(EmbeddedWorkerInstance);
171 }; 179 };
172 180
173 } // namespace content 181 } // namespace content
174 182
175 #endif // CONTENT_BROWSER_SERVICE_WORKER_EMBEDDED_WORKER_INSTANCE_H_ 183 #endif // CONTENT_BROWSER_SERVICE_WORKER_EMBEDDED_WORKER_INSTANCE_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/service_worker/embedded_worker_instance.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698