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 <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <functional> | 10 #include <functional> |
(...skipping 615 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
626 // Callback function for simple events dispatched through mojo interface | 626 // Callback function for simple events dispatched through mojo interface |
627 // mojom::ServiceWorkerEventDispatcher. Use CreateSimpleEventCallback() to | 627 // mojom::ServiceWorkerEventDispatcher. Use CreateSimpleEventCallback() to |
628 // create a callback for a given |request_id|. | 628 // create a callback for a given |request_id|. |
629 void OnSimpleEventFinished(int request_id, | 629 void OnSimpleEventFinished(int request_id, |
630 ServiceWorkerStatusCode status, | 630 ServiceWorkerStatusCode status, |
631 base::Time dispatch_event_time); | 631 base::Time dispatch_event_time); |
632 | 632 |
633 void OnGetClientFinished(int request_id, | 633 void OnGetClientFinished(int request_id, |
634 const ServiceWorkerClientInfo& client_info); | 634 const ServiceWorkerClientInfo& client_info); |
635 | 635 |
636 void OnGetClientsFinished(int request_id, ServiceWorkerClients* clients); | 636 void OnGetClientsFinished(int request_id, |
| 637 std::unique_ptr<ServiceWorkerClients> clients); |
637 | 638 |
638 // The timeout timer periodically calls OnTimeoutTimer, which stops the worker | 639 // The timeout timer periodically calls OnTimeoutTimer, which stops the worker |
639 // if it is excessively idle or unresponsive to ping. | 640 // if it is excessively idle or unresponsive to ping. |
640 void StartTimeoutTimer(); | 641 void StartTimeoutTimer(); |
641 void StopTimeoutTimer(); | 642 void StopTimeoutTimer(); |
642 void OnTimeoutTimer(); | 643 void OnTimeoutTimer(); |
643 void SetTimeoutTimerInterval(base::TimeDelta interval); | 644 void SetTimeoutTimerInterval(base::TimeDelta interval); |
644 | 645 |
645 // Called by PingController for ping protocol. | 646 // Called by PingController for ping protocol. |
646 void PingWorker(); | 647 void PingWorker(); |
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
828 | 829 |
829 // At this point |this| can have been deleted, so don't do anything other | 830 // At this point |this| can have been deleted, so don't do anything other |
830 // than returning. | 831 // than returning. |
831 | 832 |
832 return true; | 833 return true; |
833 } | 834 } |
834 | 835 |
835 } // namespace content | 836 } // namespace content |
836 | 837 |
837 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_VERSION_H_ | 838 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_VERSION_H_ |
OLD | NEW |