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..4305ebf46690a864f9338fb7791c623257560bc7 100644 |
--- a/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerGlobalScopeClient.h |
+++ b/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerGlobalScopeClient.h |
@@ -31,9 +31,11 @@ |
#ifndef ServiceWorkerGlobalScopeClient_h |
#define ServiceWorkerGlobalScopeClient_h |
+#include <memory> |
#include "core/dom/MessagePort.h" |
#include "core/workers/WorkerClients.h" |
#include "modules/ModulesExport.h" |
+#include "mojo/public/cpp/system/data_pipe.h" |
#include "public/platform/WebMessagePortChannel.h" |
#include "public/platform/modules/serviceworker/WebServiceWorkerClientsClaimCallbacks.h" |
#include "public/platform/modules/serviceworker/WebServiceWorkerClientsInfo.h" |
@@ -41,7 +43,6 @@ |
#include "public/platform/modules/serviceworker/WebServiceWorkerSkipWaitingCallbacks.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&, |
+ mojo::ScopedDataPipeConsumerHandle data_stream, |
+ double eventDispatchTime) = 0; |
virtual void respondToPaymentRequestEvent(int eventID, |
const WebPaymentAppResponse&, |
double eventDispatchTime) = 0; |