Chromium Code Reviews| 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 23 matching lines...) Expand all Loading... | |
| 34 #include "content/browser/service_worker/service_worker_script_cache_map.h" | 34 #include "content/browser/service_worker/service_worker_script_cache_map.h" |
| 35 #include "content/common/content_export.h" | 35 #include "content/common/content_export.h" |
| 36 #include "content/common/origin_trials/trial_token_validator.h" | 36 #include "content/common/origin_trials/trial_token_validator.h" |
| 37 #include "content/common/service_worker/service_worker_event_dispatcher.mojom.h" | 37 #include "content/common/service_worker/service_worker_event_dispatcher.mojom.h" |
| 38 #include "content/common/service_worker/service_worker_status_code.h" | 38 #include "content/common/service_worker/service_worker_status_code.h" |
| 39 #include "content/common/service_worker/service_worker_types.h" | 39 #include "content/common/service_worker/service_worker_types.h" |
| 40 #include "ipc/ipc_message.h" | 40 #include "ipc/ipc_message.h" |
| 41 #include "mojo/public/cpp/bindings/interface_ptr.h" | 41 #include "mojo/public/cpp/bindings/interface_ptr.h" |
| 42 #include "services/service_manager/public/cpp/interface_provider.h" | 42 #include "services/service_manager/public/cpp/interface_provider.h" |
| 43 #include "third_party/WebKit/public/platform/modules/serviceworker/WebServiceWor kerEventResult.h" | 43 #include "third_party/WebKit/public/platform/modules/serviceworker/WebServiceWor kerEventResult.h" |
| 44 #include "ui/base/mojo/window_open_disposition.mojom.h" | |
| 44 #include "url/gurl.h" | 45 #include "url/gurl.h" |
| 45 #include "url/origin.h" | 46 #include "url/origin.h" |
| 46 | 47 |
| 47 // Windows headers will redefine SendMessage. | 48 // Windows headers will redefine SendMessage. |
| 48 #ifdef SendMessage | 49 #ifdef SendMessage |
| 49 #undef SendMessage | 50 #undef SendMessage |
| 50 #endif | 51 #endif |
| 51 | 52 |
| 52 namespace net { | 53 namespace net { |
| 53 class HttpResponseInfo; | 54 class HttpResponseInfo; |
| (...skipping 522 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 576 void OnStartSentAndScriptEvaluated(ServiceWorkerStatusCode status); | 577 void OnStartSentAndScriptEvaluated(ServiceWorkerStatusCode status); |
| 577 | 578 |
| 578 // Message handlers. | 579 // Message handlers. |
| 579 | 580 |
| 580 // This corresponds to the spec's get(id) steps. | 581 // This corresponds to the spec's get(id) steps. |
| 581 void OnGetClient(int request_id, const std::string& client_uuid); | 582 void OnGetClient(int request_id, const std::string& client_uuid); |
| 582 | 583 |
| 583 // This corresponds to the spec's matchAll(options) steps. | 584 // This corresponds to the spec's matchAll(options) steps. |
| 584 void OnGetClients(int request_id, | 585 void OnGetClients(int request_id, |
| 585 const ServiceWorkerClientQueryOptions& options); | 586 const ServiceWorkerClientQueryOptions& options); |
| 586 | 587 |
|
falken
2017/06/02 07:58:19
// For Clients.openWindow()
gogerald1
2017/06/02 13:21:40
Done.
| |
| 587 void OnOpenWindow(int request_id, GURL url); | 588 void OnOpenWindowForClients(int request_id, GURL url); |
|
falken
2017/06/02 07:58:19
// For PaymentRequestEvent.openWindow()
gogerald1
2017/06/02 13:21:40
Done.
| |
| 589 void OnOpenWindowForPaymentHandler(int request_id, GURL url); | |
| 590 void OnOpenWindow(int request_id, | |
|
please use gerrit instead
2017/06/02 03:43:17
Make this private, please.
falken
2017/06/02 07:58:19
+1
gogerald1
2017/06/02 13:21:40
These interfaces are already in private scope,
gogerald1
2017/06/02 13:21:40
Done.
| |
| 591 GURL url, | |
| 592 WindowOpenDisposition disposition); | |
| 588 void OnOpenWindowFinished(int request_id, | 593 void OnOpenWindowFinished(int request_id, |
| 589 ServiceWorkerStatusCode status, | 594 ServiceWorkerStatusCode status, |
| 590 const ServiceWorkerClientInfo& client_info); | 595 const ServiceWorkerClientInfo& client_info); |
| 591 | 596 |
| 592 void OnSetCachedMetadata(const GURL& url, const std::vector<char>& data); | 597 void OnSetCachedMetadata(const GURL& url, const std::vector<char>& data); |
| 593 void OnSetCachedMetadataFinished(int64_t callback_id, int result); | 598 void OnSetCachedMetadataFinished(int64_t callback_id, int result); |
| 594 void OnClearCachedMetadata(const GURL& url); | 599 void OnClearCachedMetadata(const GURL& url); |
| 595 void OnClearCachedMetadataFinished(int64_t callback_id, int result); | 600 void OnClearCachedMetadataFinished(int64_t callback_id, int result); |
| 596 | 601 |
| 597 void OnPostMessageToClient( | 602 void OnPostMessageToClient( |
| (...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 828 | 833 |
| 829 // At this point |this| can have been deleted, so don't do anything other | 834 // At this point |this| can have been deleted, so don't do anything other |
| 830 // than returning. | 835 // than returning. |
| 831 | 836 |
| 832 return true; | 837 return true; |
| 833 } | 838 } |
| 834 | 839 |
| 835 } // namespace content | 840 } // namespace content |
| 836 | 841 |
| 837 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_VERSION_H_ | 842 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_VERSION_H_ |
| OLD | NEW |