OLD | NEW |
---|---|
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 Loading... | |
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 // it finished loading the script. | |
125 void OnScriptLoaded(); | |
126 | |
127 // Called back from Registry when the worker instance has ack'ed that | |
124 // its WorkerGlobalScope is actually started on |thread_id| in the | 128 // its WorkerGlobalScope is actually started on |thread_id| in the |
kinuko
2014/05/02 07:27:10
would be better to add 'and evaluated' part?
...i
kinuko
2014/05/02 07:29:05
evaluated -> 'parsed' would be better to be consis
horo
2014/05/02 08:04:56
Done.
| |
125 // child process. | 129 // child process. |
126 // This will change the internal status from STARTING to RUNNING. | 130 // This will change the internal status from STARTING to RUNNING. |
127 void OnStarted(int thread_id); | 131 void OnStarted(int thread_id); |
128 | 132 |
129 // Called back from Registry when the worker instance has ack'ed that | 133 // Called back from Registry when the worker instance has ack'ed that |
130 // its WorkerGlobalScope is actually stopped in the child process. | 134 // its WorkerGlobalScope is actually stopped in the child process. |
131 // This will change the internal status from STARTING or RUNNING to | 135 // This will change the internal status from STARTING or RUNNING to |
132 // STOPPED. | 136 // STOPPED. |
133 void OnStopped(); | 137 void OnStopped(); |
134 | 138 |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
166 | 170 |
167 ProcessRefMap process_refs_; | 171 ProcessRefMap process_refs_; |
168 ListenerList listener_list_; | 172 ListenerList listener_list_; |
169 | 173 |
170 DISALLOW_COPY_AND_ASSIGN(EmbeddedWorkerInstance); | 174 DISALLOW_COPY_AND_ASSIGN(EmbeddedWorkerInstance); |
171 }; | 175 }; |
172 | 176 |
173 } // namespace content | 177 } // namespace content |
174 | 178 |
175 #endif // CONTENT_BROWSER_SERVICE_WORKER_EMBEDDED_WORKER_INSTANCE_H_ | 179 #endif // CONTENT_BROWSER_SERVICE_WORKER_EMBEDDED_WORKER_INSTANCE_H_ |
OLD | NEW |