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 478 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
489 void GetWindowClients(int request_id, | 489 void GetWindowClients(int request_id, |
490 const ServiceWorkerClientQueryOptions& options); | 490 const ServiceWorkerClientQueryOptions& options); |
491 const std::vector<base::Tuple<int, int, std::string>> | 491 const std::vector<base::Tuple<int, int, std::string>> |
492 GetWindowClientsInternal(bool include_uncontolled); | 492 GetWindowClientsInternal(bool include_uncontolled); |
493 void DidGetWindowClients(int request_id, | 493 void DidGetWindowClients(int request_id, |
494 const ServiceWorkerClientQueryOptions& options, | 494 const ServiceWorkerClientQueryOptions& options, |
495 scoped_ptr<ServiceWorkerClients> clients); | 495 scoped_ptr<ServiceWorkerClients> clients); |
496 void GetNonWindowClients(int request_id, | 496 void GetNonWindowClients(int request_id, |
497 const ServiceWorkerClientQueryOptions& options, | 497 const ServiceWorkerClientQueryOptions& options, |
498 ServiceWorkerClients* clients); | 498 ServiceWorkerClients* clients); |
499 void OnGetClientsFinished(int request_id, | 499 void OnGetClientsFinished(int request_id, ServiceWorkerClients* clients); |
500 const ServiceWorkerClients& clients); | |
501 | 500 |
502 // The timeout timer periodically calls OnTimeoutTimer, which stops the worker | 501 // The timeout timer periodically calls OnTimeoutTimer, which stops the worker |
503 // if it is excessively idle or unresponsive to ping. | 502 // if it is excessively idle or unresponsive to ping. |
504 void StartTimeoutTimer(); | 503 void StartTimeoutTimer(); |
505 void StopTimeoutTimer(); | 504 void StopTimeoutTimer(); |
506 void OnTimeoutTimer(); | 505 void OnTimeoutTimer(); |
507 | 506 |
508 // Called by PingController for ping protocol. | 507 // Called by PingController for ping protocol. |
509 ServiceWorkerStatusCode PingWorker(); | 508 ServiceWorkerStatusCode PingWorker(); |
510 void OnPingTimeout(); | 509 void OnPingTimeout(); |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
626 scoped_ptr<Metrics> metrics_; | 625 scoped_ptr<Metrics> metrics_; |
627 | 626 |
628 base::WeakPtrFactory<ServiceWorkerVersion> weak_factory_; | 627 base::WeakPtrFactory<ServiceWorkerVersion> weak_factory_; |
629 | 628 |
630 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerVersion); | 629 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerVersion); |
631 }; | 630 }; |
632 | 631 |
633 } // namespace content | 632 } // namespace content |
634 | 633 |
635 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_VERSION_H_ | 634 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_VERSION_H_ |
OLD | NEW |