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 528 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
539 void DispatchInstallEventAfterStartWorker(const StatusCallback& callback); | 539 void DispatchInstallEventAfterStartWorker(const StatusCallback& callback); |
540 void DispatchActivateEventAfterStartWorker(const StatusCallback& callback); | 540 void DispatchActivateEventAfterStartWorker(const StatusCallback& callback); |
541 | 541 |
542 void DispatchMessageEventInternal( | 542 void DispatchMessageEventInternal( |
543 const base::string16& message, | 543 const base::string16& message, |
544 const std::vector<TransferredMessagePort>& sent_message_ports, | 544 const std::vector<TransferredMessagePort>& sent_message_ports, |
545 const StatusCallback& callback); | 545 const StatusCallback& callback); |
546 | 546 |
547 // Message handlers. | 547 // Message handlers. |
548 | 548 |
549 void OnGetClient(int request_id, const std::string& id); | |
nhiroki
2016/02/08 06:27:02
nit: can you add a blank line after this?
jungkees
2016/02/12 15:03:21
Done.
| |
549 // This corresponds to the spec's matchAll(options) steps. | 550 // This corresponds to the spec's matchAll(options) steps. |
550 void OnGetClients(int request_id, | 551 void OnGetClients(int request_id, |
551 const ServiceWorkerClientQueryOptions& options); | 552 const ServiceWorkerClientQueryOptions& options); |
552 | 553 |
553 void OnActivateEventFinished(int request_id, | 554 void OnActivateEventFinished(int request_id, |
554 blink::WebServiceWorkerEventResult result); | 555 blink::WebServiceWorkerEventResult result); |
555 void OnInstallEventFinished(int request_id, | 556 void OnInstallEventFinished(int request_id, |
556 blink::WebServiceWorkerEventResult result); | 557 blink::WebServiceWorkerEventResult result); |
557 void OnFetchEventFinished(int request_id, | 558 void OnFetchEventFinished(int request_id, |
558 ServiceWorkerFetchEventResult result, | 559 ServiceWorkerFetchEventResult result, |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
593 void OnRegisterForeignFetchScopes(const std::vector<GURL>& sub_scopes); | 594 void OnRegisterForeignFetchScopes(const std::vector<GURL>& sub_scopes); |
594 | 595 |
595 void DidEnsureLiveRegistrationForStartWorker( | 596 void DidEnsureLiveRegistrationForStartWorker( |
596 const StatusCallback& callback, | 597 const StatusCallback& callback, |
597 ServiceWorkerStatusCode status, | 598 ServiceWorkerStatusCode status, |
598 const scoped_refptr<ServiceWorkerRegistration>& registration); | 599 const scoped_refptr<ServiceWorkerRegistration>& registration); |
599 void StartWorkerInternal(); | 600 void StartWorkerInternal(); |
600 | 601 |
601 void DidSkipWaiting(int request_id); | 602 void DidSkipWaiting(int request_id); |
602 | 603 |
604 void OnGetClientFinished(int request_id, | |
605 const ServiceWorkerClientInfo& client); | |
606 | |
603 void OnGetClientsFinished(int request_id, ServiceWorkerClients* clients); | 607 void OnGetClientsFinished(int request_id, ServiceWorkerClients* clients); |
604 | 608 |
605 // The timeout timer periodically calls OnTimeoutTimer, which stops the worker | 609 // The timeout timer periodically calls OnTimeoutTimer, which stops the worker |
606 // if it is excessively idle or unresponsive to ping. | 610 // if it is excessively idle or unresponsive to ping. |
607 void StartTimeoutTimer(); | 611 void StartTimeoutTimer(); |
608 void StopTimeoutTimer(); | 612 void StopTimeoutTimer(); |
609 void OnTimeoutTimer(); | 613 void OnTimeoutTimer(); |
610 void SetTimeoutTimerInterval(base::TimeDelta interval); | 614 void SetTimeoutTimerInterval(base::TimeDelta interval); |
611 | 615 |
612 // Called by PingController for ping protocol. | 616 // Called by PingController for ping protocol. |
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
823 | 827 |
824 // At this point |this| can have been deleted, so don't do anything other | 828 // At this point |this| can have been deleted, so don't do anything other |
825 // than returning. | 829 // than returning. |
826 | 830 |
827 return true; | 831 return true; |
828 } | 832 } |
829 | 833 |
830 } // namespace content | 834 } // namespace content |
831 | 835 |
832 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_VERSION_H_ | 836 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_VERSION_H_ |
OLD | NEW |