Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(9)

Unified Diff: third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerGlobalScopeClient.h

Issue 2684533002: [WIP] Mojofy respondwith
Patch Set: rebase Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;

Powered by Google App Engine
This is Rietveld 408576698