| 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 483df639061940ddb5f0905e454edaa97aae9d88..6d52997f278b5e6b712783e5a98c9fa6895ef8ba 100644
|
| --- a/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerGlobalScopeClient.h
|
| +++ b/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerGlobalScopeClient.h
|
| @@ -31,6 +31,7 @@
|
| #ifndef ServiceWorkerGlobalScopeClient_h
|
| #define ServiceWorkerGlobalScopeClient_h
|
|
|
| +#include <memory>
|
| #include "core/dom/MessagePort.h"
|
| #include "core/workers/WorkerClients.h"
|
| #include "modules/ModulesExport.h"
|
| @@ -39,9 +40,9 @@
|
| #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"
|
| #include "wtf/Forward.h"
|
| #include "wtf/Noncopyable.h"
|
| -#include <memory>
|
|
|
| namespace blink {
|
|
|
| @@ -97,9 +98,14 @@ class MODULES_EXPORT ServiceWorkerGlobalScopeClient
|
| // provided by the service worker in the fetch events, so fallback to native.
|
| virtual void respondToFetchEvent(int fetchEventID,
|
| double eventDispatchTime) = 0;
|
| - virtual void respondToFetchEvent(int fetchEventID,
|
| - const WebServiceWorkerResponse&,
|
| - double eventDispatchTime) = 0;
|
| + virtual void respondToFetchEventWithResponse(int fetchEventID,
|
| + const WebServiceWorkerResponse&,
|
| + double eventDispatchTime) = 0;
|
| + virtual void respondToFetchEventWithResponseStream(
|
| + int fetchEventID,
|
| + const WebServiceWorkerResponse&,
|
| + WebServiceWorkerStreamHandle*,
|
| + double eventDispatchTime) = 0;
|
| virtual void respondToPaymentRequestEvent(int eventID,
|
| const WebPaymentAppResponse&,
|
| double eventDispatchTime) = 0;
|
|
|