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 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
209 void OnProcessAllocated(std::unique_ptr<WorkerProcessHandle> handle, | 209 void OnProcessAllocated(std::unique_ptr<WorkerProcessHandle> handle, |
210 ServiceWorkerMetrics::StartSituation start_situation); | 210 ServiceWorkerMetrics::StartSituation start_situation); |
211 | 211 |
212 // Called back from StartTask after the worker is registered to | 212 // Called back from StartTask after the worker is registered to |
213 // WorkerDevToolsManager. | 213 // WorkerDevToolsManager. |
214 void OnRegisteredToDevToolsManager(bool is_new_process, | 214 void OnRegisteredToDevToolsManager(bool is_new_process, |
215 int worker_devtools_agent_route_id, | 215 int worker_devtools_agent_route_id, |
216 bool wait_for_debugger); | 216 bool wait_for_debugger); |
217 | 217 |
218 // Sends StartWorker message via Mojo. | 218 // Sends StartWorker message via Mojo. |
219 ServiceWorkerStatusCode SendMojoStartWorker( | 219 ServiceWorkerStatusCode SendStartWorker( |
220 std::unique_ptr<EmbeddedWorkerStartParams> params); | 220 std::unique_ptr<EmbeddedWorkerStartParams> params); |
221 | 221 |
222 // Called back from StartTask after a start worker message is sent. | 222 // Called back from StartTask after a start worker message is sent. |
223 void OnStartWorkerMessageSent(); | 223 void OnStartWorkerMessageSent(); |
224 | 224 |
225 // Called back from Registry when the worker instance has ack'ed that | 225 // Called back from Registry when the worker instance has ack'ed that |
226 // it is ready for inspection. | 226 // it is ready for inspection. |
227 void OnReadyForInspection(); | 227 void OnReadyForInspection(); |
228 | 228 |
229 // Called back from Registry when the worker instance has ack'ed that | 229 // Called back from Registry when the worker instance has ack'ed that |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
329 base::TimeTicks step_time_; | 329 base::TimeTicks step_time_; |
330 | 330 |
331 base::WeakPtrFactory<EmbeddedWorkerInstance> weak_factory_; | 331 base::WeakPtrFactory<EmbeddedWorkerInstance> weak_factory_; |
332 | 332 |
333 DISALLOW_COPY_AND_ASSIGN(EmbeddedWorkerInstance); | 333 DISALLOW_COPY_AND_ASSIGN(EmbeddedWorkerInstance); |
334 }; | 334 }; |
335 | 335 |
336 } // namespace content | 336 } // namespace content |
337 | 337 |
338 #endif // CONTENT_BROWSER_SERVICE_WORKER_EMBEDDED_WORKER_INSTANCE_H_ | 338 #endif // CONTENT_BROWSER_SERVICE_WORKER_EMBEDDED_WORKER_INSTANCE_H_ |
OLD | NEW |