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_SERVICE_WORKER_VERSION_H_ | 5 #ifndef CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_VERSION_H_ |
6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_VERSION_H_ | 6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_VERSION_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <queue> | 9 #include <queue> |
10 #include <set> | 10 #include <set> |
(...skipping 575 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
586 ServicePortDispatcherPtr service_port_dispatcher_; | 586 ServicePortDispatcherPtr service_port_dispatcher_; |
587 BackgroundSyncServiceClientPtr background_sync_dispatcher_; | 587 BackgroundSyncServiceClientPtr background_sync_dispatcher_; |
588 | 588 |
589 std::set<const ServiceWorkerURLRequestJob*> streaming_url_request_jobs_; | 589 std::set<const ServiceWorkerURLRequestJob*> streaming_url_request_jobs_; |
590 | 590 |
591 std::map<std::string, ServiceWorkerProviderHost*> controllee_map_; | 591 std::map<std::string, ServiceWorkerProviderHost*> controllee_map_; |
592 // Will be null while shutting down. | 592 // Will be null while shutting down. |
593 base::WeakPtr<ServiceWorkerContextCore> context_; | 593 base::WeakPtr<ServiceWorkerContextCore> context_; |
594 base::ObserverList<Listener> listeners_; | 594 base::ObserverList<Listener> listeners_; |
595 ServiceWorkerScriptCacheMap script_cache_map_; | 595 ServiceWorkerScriptCacheMap script_cache_map_; |
596 base::OneShotTimer<ServiceWorkerVersion> update_timer_; | 596 base::OneShotTimer update_timer_; |
597 | 597 |
598 // Starts running in StartWorker and continues until the worker is stopped. | 598 // Starts running in StartWorker and continues until the worker is stopped. |
599 base::RepeatingTimer<ServiceWorkerVersion> timeout_timer_; | 599 base::RepeatingTimer timeout_timer_; |
600 // Holds the time the worker last started being considered idle. | 600 // Holds the time the worker last started being considered idle. |
601 base::TimeTicks idle_time_; | 601 base::TimeTicks idle_time_; |
602 // Holds the time that the outstanding StartWorker() request started. | 602 // Holds the time that the outstanding StartWorker() request started. |
603 base::TimeTicks start_time_; | 603 base::TimeTicks start_time_; |
604 // Holds the time the worker entered STOPPING status. | 604 // Holds the time the worker entered STOPPING status. |
605 base::TimeTicks stop_time_; | 605 base::TimeTicks stop_time_; |
606 // Holds the time the worker was detected as stale and needs updating. We try | 606 // Holds the time the worker was detected as stale and needs updating. We try |
607 // to update once the worker stops, but will also update if it stays alive too | 607 // to update once the worker stops, but will also update if it stays alive too |
608 // long. | 608 // long. |
609 base::TimeTicks stale_time_; | 609 base::TimeTicks stale_time_; |
(...skipping 24 matching lines...) Expand all Loading... |
634 const bool should_exclude_from_uma_ = false; | 634 const bool should_exclude_from_uma_ = false; |
635 | 635 |
636 base::WeakPtrFactory<ServiceWorkerVersion> weak_factory_; | 636 base::WeakPtrFactory<ServiceWorkerVersion> weak_factory_; |
637 | 637 |
638 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerVersion); | 638 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerVersion); |
639 }; | 639 }; |
640 | 640 |
641 } // namespace content | 641 } // namespace content |
642 | 642 |
643 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_VERSION_H_ | 643 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_VERSION_H_ |
OLD | NEW |