Chromium Code Reviews| Index: third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerGlobalScopeClient.h |
| diff --git a/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerGlobalScopeClient.h b/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerGlobalScopeClient.h |
| index 62e04e1a1a19efd5014f7f3415db9f4e8e3490b8..e832007d219829d741234f4d995f367f7d7fd230 100644 |
| --- a/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerGlobalScopeClient.h |
| +++ b/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerGlobalScopeClient.h |
| @@ -42,6 +42,7 @@ |
| #include "public/platform/modules/serviceworker/WebServiceWorkerClientsInfo.h" |
| #include "public/platform/modules/serviceworker/WebServiceWorkerEventResult.h" |
| #include "public/platform/modules/serviceworker/WebServiceWorkerSkipWaitingCallbacks.h" |
| +#include "public/platform/modules/serviceworker/WebServiceWorkerStreamHandle.h" |
| namespace blink { |
| @@ -96,13 +97,18 @@ class MODULES_EXPORT ServiceWorkerGlobalScopeClient |
| virtual void DidHandleExtendableMessageEvent(int event_id, |
| WebServiceWorkerEventResult, |
| double event_dispatch_time) = 0; |
| - // Calling respondToFetchEvent without response means no response was |
| + // Calling RespondToFetchEvent without response means no response was |
| // provided by the service worker in the fetch events, so fallback to native. |
|
falken
2017/04/12 08:00:16
This comment is redundant with the interface. A be
shimazu
2017/04/18 01:50:05
Done.
|
| virtual void RespondToFetchEvent(int fetch_event_id, |
| double event_dispatch_time) = 0; |
| - virtual void RespondToFetchEvent(int fetch_event_id, |
| - const WebServiceWorkerResponse&, |
| - double event_dispatch_time) = 0; |
| + virtual void RespondToFetchEventWithResponse(int fetch_event_id, |
| + const WebServiceWorkerResponse&, |
| + double event_dispatch_time) = 0; |
| + virtual void RespondToFetchEventWithResponseStream( |
| + int fetch_event_id, |
| + const WebServiceWorkerResponse&, |
| + WebServiceWorkerStreamHandle*, |
| + double event_dispatch_time) = 0; |
| virtual void RespondToPaymentRequestEvent(int event_id, |
| const WebPaymentAppResponse&, |
| double event_dispatch_time) = 0; |