| 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 <string> | 10 #include <string> |
| (...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 269 | 269 |
| 270 base::WeakPtr<ServiceWorkerContextCore> context_; | 270 base::WeakPtr<ServiceWorkerContextCore> context_; |
| 271 scoped_refptr<EmbeddedWorkerRegistry> registry_; | 271 scoped_refptr<EmbeddedWorkerRegistry> registry_; |
| 272 const int embedded_worker_id_; | 272 const int embedded_worker_id_; |
| 273 Status status_; | 273 Status status_; |
| 274 StartingPhase starting_phase_; | 274 StartingPhase starting_phase_; |
| 275 | 275 |
| 276 // Current running information. | 276 // Current running information. |
| 277 scoped_ptr<EmbeddedWorkerInstance::WorkerProcessHandle> process_handle_; | 277 scoped_ptr<EmbeddedWorkerInstance::WorkerProcessHandle> process_handle_; |
| 278 int thread_id_; | 278 int thread_id_; |
| 279 scoped_ptr<ServiceRegistryImpl> service_registry_; | 279 scoped_ptr<BrowserServiceRegistryImpl> service_registry_; |
| 280 | 280 |
| 281 // Whether devtools is attached or not. | 281 // Whether devtools is attached or not. |
| 282 bool devtools_attached_; | 282 bool devtools_attached_; |
| 283 | 283 |
| 284 // True if the script load request accessed the network. If the script was | 284 // True if the script load request accessed the network. If the script was |
| 285 // served from HTTPCache or ServiceWorkerDatabase this value is false. | 285 // served from HTTPCache or ServiceWorkerDatabase this value is false. |
| 286 bool network_accessed_for_script_; | 286 bool network_accessed_for_script_; |
| 287 | 287 |
| 288 ListenerList listener_list_; | 288 ListenerList listener_list_; |
| 289 scoped_ptr<DevToolsProxy> devtools_proxy_; | 289 scoped_ptr<DevToolsProxy> devtools_proxy_; |
| 290 | 290 |
| 291 scoped_ptr<StartTask> inflight_start_task_; | 291 scoped_ptr<StartTask> inflight_start_task_; |
| 292 base::TimeTicks start_timing_; | 292 base::TimeTicks start_timing_; |
| 293 | 293 |
| 294 base::WeakPtrFactory<EmbeddedWorkerInstance> weak_factory_; | 294 base::WeakPtrFactory<EmbeddedWorkerInstance> weak_factory_; |
| 295 | 295 |
| 296 DISALLOW_COPY_AND_ASSIGN(EmbeddedWorkerInstance); | 296 DISALLOW_COPY_AND_ASSIGN(EmbeddedWorkerInstance); |
| 297 }; | 297 }; |
| 298 | 298 |
| 299 } // namespace content | 299 } // namespace content |
| 300 | 300 |
| 301 #endif // CONTENT_BROWSER_SERVICE_WORKER_EMBEDDED_WORKER_INSTANCE_H_ | 301 #endif // CONTENT_BROWSER_SERVICE_WORKER_EMBEDDED_WORKER_INSTANCE_H_ |
| OLD | NEW |