| 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 566 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 577 | 577 |
| 578 // Message handlers. | 578 // Message handlers. |
| 579 | 579 |
| 580 // This corresponds to the spec's get(id) steps. | 580 // This corresponds to the spec's get(id) steps. |
| 581 void OnGetClient(int request_id, const std::string& client_uuid); | 581 void OnGetClient(int request_id, const std::string& client_uuid); |
| 582 | 582 |
| 583 // This corresponds to the spec's matchAll(options) steps. | 583 // This corresponds to the spec's matchAll(options) steps. |
| 584 void OnGetClients(int request_id, | 584 void OnGetClients(int request_id, |
| 585 const ServiceWorkerClientQueryOptions& options); | 585 const ServiceWorkerClientQueryOptions& options); |
| 586 | 586 |
| 587 void OnOpenWindow(int request_id, GURL url); | 587 void OnOpenWindow(int request_id, GURL redirect_url, GURL url); |
| 588 void OnOpenWindowFinished(int request_id, | 588 void OnOpenWindowFinished(int request_id, |
| 589 ServiceWorkerStatusCode status, | 589 ServiceWorkerStatusCode status, |
| 590 const ServiceWorkerClientInfo& client_info); | 590 const ServiceWorkerClientInfo& client_info); |
| 591 | 591 |
| 592 void OnSetCachedMetadata(const GURL& url, const std::vector<char>& data); | 592 void OnSetCachedMetadata(const GURL& url, const std::vector<char>& data); |
| 593 void OnSetCachedMetadataFinished(int64_t callback_id, int result); | 593 void OnSetCachedMetadataFinished(int64_t callback_id, int result); |
| 594 void OnClearCachedMetadata(const GURL& url); | 594 void OnClearCachedMetadata(const GURL& url); |
| 595 void OnClearCachedMetadataFinished(int64_t callback_id, int result); | 595 void OnClearCachedMetadataFinished(int64_t callback_id, int result); |
| 596 | 596 |
| 597 void OnPostMessageToClient( | 597 void OnPostMessageToClient( |
| (...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 828 | 828 |
| 829 // At this point |this| can have been deleted, so don't do anything other | 829 // At this point |this| can have been deleted, so don't do anything other |
| 830 // than returning. | 830 // than returning. |
| 831 | 831 |
| 832 return true; | 832 return true; |
| 833 } | 833 } |
| 834 | 834 |
| 835 } // namespace content | 835 } // namespace content |
| 836 | 836 |
| 837 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_VERSION_H_ | 837 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_VERSION_H_ |
| OLD | NEW |