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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 // Add new values here. | 73 // Add new values here. |
74 STARTING_PHASE_MAX_VALUE, | 74 STARTING_PHASE_MAX_VALUE, |
75 }; | 75 }; |
76 | 76 |
77 class Listener { | 77 class Listener { |
78 public: | 78 public: |
79 virtual ~Listener() {} | 79 virtual ~Listener() {} |
80 | 80 |
81 virtual void OnStarting() {} | 81 virtual void OnStarting() {} |
82 virtual void OnProcessAllocated() {} | 82 virtual void OnProcessAllocated() {} |
| 83 virtual void OnRegisteredToDevToolsManager() {} |
83 virtual void OnStartWorkerMessageSent() {} | 84 virtual void OnStartWorkerMessageSent() {} |
84 virtual void OnThreadStarted() {} | 85 virtual void OnThreadStarted() {} |
85 virtual void OnStarted() {} | 86 virtual void OnStarted() {} |
86 | 87 |
87 virtual void OnStopping() {} | 88 virtual void OnStopping() {} |
88 // Received ACK from renderer that the worker context terminated. | 89 // Received ACK from renderer that the worker context terminated. |
89 virtual void OnStopped(EmbeddedWorkerStatus old_status) {} | 90 virtual void OnStopped(EmbeddedWorkerStatus old_status) {} |
90 // The browser-side IPC endpoint for communication with the worker died. | 91 // The browser-side IPC endpoint for communication with the worker died. |
91 virtual void OnDetached(EmbeddedWorkerStatus old_status) {} | 92 virtual void OnDetached(EmbeddedWorkerStatus old_status) {} |
92 virtual void OnScriptLoaded() {} | 93 virtual void OnScriptLoaded() {} |
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
328 base::TimeTicks step_time_; | 329 base::TimeTicks step_time_; |
329 | 330 |
330 base::WeakPtrFactory<EmbeddedWorkerInstance> weak_factory_; | 331 base::WeakPtrFactory<EmbeddedWorkerInstance> weak_factory_; |
331 | 332 |
332 DISALLOW_COPY_AND_ASSIGN(EmbeddedWorkerInstance); | 333 DISALLOW_COPY_AND_ASSIGN(EmbeddedWorkerInstance); |
333 }; | 334 }; |
334 | 335 |
335 } // namespace content | 336 } // namespace content |
336 | 337 |
337 #endif // CONTENT_BROWSER_SERVICE_WORKER_EMBEDDED_WORKER_INSTANCE_H_ | 338 #endif // CONTENT_BROWSER_SERVICE_WORKER_EMBEDDED_WORKER_INSTANCE_H_ |
OLD | NEW |