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 <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
219 void OnProcessAllocated(std::unique_ptr<WorkerProcessHandle> handle, | 219 void OnProcessAllocated(std::unique_ptr<WorkerProcessHandle> handle, |
220 ServiceWorkerMetrics::StartSituation start_situation); | 220 ServiceWorkerMetrics::StartSituation start_situation); |
221 | 221 |
222 // Called back from StartTask after the worker is registered to | 222 // Called back from StartTask after the worker is registered to |
223 // WorkerDevToolsManager. | 223 // WorkerDevToolsManager. |
224 void OnRegisteredToDevToolsManager(bool is_new_process, | 224 void OnRegisteredToDevToolsManager(bool is_new_process, |
225 int worker_devtools_agent_route_id, | 225 int worker_devtools_agent_route_id, |
226 bool wait_for_debugger); | 226 bool wait_for_debugger); |
227 | 227 |
228 // Sends StartWorker message via Mojo. | 228 // Sends StartWorker message via Mojo. |
229 void SendMojoStartWorker(std::unique_ptr<EmbeddedWorkerStartParams> params); | 229 ServiceWorkerStatusCode SendMojoStartWorker( |
| 230 std::unique_ptr<EmbeddedWorkerStartParams> params); |
230 | 231 |
231 // Called back from StartTask after a start worker message is sent. | 232 // Called back from StartTask after a start worker message is sent. |
232 void OnStartWorkerMessageSent(); | 233 void OnStartWorkerMessageSent(); |
233 | 234 |
234 // Called back from Registry when the worker instance has ack'ed that | 235 // Called back from Registry when the worker instance has ack'ed that |
235 // it is ready for inspection. | 236 // it is ready for inspection. |
236 void OnReadyForInspection(); | 237 void OnReadyForInspection(); |
237 | 238 |
238 // Called back from Registry when the worker instance has ack'ed that | 239 // Called back from Registry when the worker instance has ack'ed that |
239 // it finished loading the script. | 240 // it finished loading the script. |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
337 base::TimeTicks step_time_; | 338 base::TimeTicks step_time_; |
338 | 339 |
339 base::WeakPtrFactory<EmbeddedWorkerInstance> weak_factory_; | 340 base::WeakPtrFactory<EmbeddedWorkerInstance> weak_factory_; |
340 | 341 |
341 DISALLOW_COPY_AND_ASSIGN(EmbeddedWorkerInstance); | 342 DISALLOW_COPY_AND_ASSIGN(EmbeddedWorkerInstance); |
342 }; | 343 }; |
343 | 344 |
344 } // namespace content | 345 } // namespace content |
345 | 346 |
346 #endif // CONTENT_BROWSER_SERVICE_WORKER_EMBEDDED_WORKER_INSTANCE_H_ | 347 #endif // CONTENT_BROWSER_SERVICE_WORKER_EMBEDDED_WORKER_INSTANCE_H_ |
OLD | NEW |