Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(423)

Side by Side Diff: content/browser/service_worker/service_worker_version.h

Issue 1162943002: Replace more ObserverList with base::ObserverList. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@observer
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 516 matching lines...) Expand 10 before | Expand all | Expand 10 after
527 IDMap<StatusCallback, IDMapOwnPointer> push_callbacks_; 527 IDMap<StatusCallback, IDMapOwnPointer> push_callbacks_;
528 IDMap<StatusCallback, IDMapOwnPointer> geofencing_callbacks_; 528 IDMap<StatusCallback, IDMapOwnPointer> geofencing_callbacks_;
529 IDMap<CrossOriginConnectCallback, IDMapOwnPointer> 529 IDMap<CrossOriginConnectCallback, IDMapOwnPointer>
530 cross_origin_connect_callbacks_; 530 cross_origin_connect_callbacks_;
531 531
532 std::set<const ServiceWorkerURLRequestJob*> streaming_url_request_jobs_; 532 std::set<const ServiceWorkerURLRequestJob*> streaming_url_request_jobs_;
533 533
534 std::map<std::string, ServiceWorkerProviderHost*> controllee_map_; 534 std::map<std::string, ServiceWorkerProviderHost*> controllee_map_;
535 // Will be null while shutting down. 535 // Will be null while shutting down.
536 base::WeakPtr<ServiceWorkerContextCore> context_; 536 base::WeakPtr<ServiceWorkerContextCore> context_;
537 ObserverList<Listener> listeners_; 537 base::ObserverList<Listener> listeners_;
538 ServiceWorkerScriptCacheMap script_cache_map_; 538 ServiceWorkerScriptCacheMap script_cache_map_;
539 base::OneShotTimer<ServiceWorkerVersion> update_timer_; 539 base::OneShotTimer<ServiceWorkerVersion> update_timer_;
540 540
541 // Starts running in StartWorker and continues until the worker is stopped. 541 // Starts running in StartWorker and continues until the worker is stopped.
542 base::RepeatingTimer<ServiceWorkerVersion> timeout_timer_; 542 base::RepeatingTimer<ServiceWorkerVersion> timeout_timer_;
543 // Holds the time the worker last started being considered idle. 543 // Holds the time the worker last started being considered idle.
544 base::TimeTicks idle_time_; 544 base::TimeTicks idle_time_;
545 // Holds the time that the outstanding StartWorker() request started. 545 // Holds the time that the outstanding StartWorker() request started.
546 base::TimeTicks start_time_; 546 base::TimeTicks start_time_;
547 547
(...skipping 20 matching lines...) Expand all
568 scoped_ptr<Metrics> metrics_; 568 scoped_ptr<Metrics> metrics_;
569 569
570 base::WeakPtrFactory<ServiceWorkerVersion> weak_factory_; 570 base::WeakPtrFactory<ServiceWorkerVersion> weak_factory_;
571 571
572 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerVersion); 572 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerVersion);
573 }; 573 };
574 574
575 } // namespace content 575 } // namespace content
576 576
577 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_VERSION_H_ 577 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_VERSION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698