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

Unified Diff: third_party/WebKit/public/web/modules/serviceworker/WebServiceWorkerContextClient.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
« no previous file with comments | « third_party/WebKit/Source/web/ServiceWorkerGlobalScopeClientImpl.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/public/web/modules/serviceworker/WebServiceWorkerContextClient.h
diff --git a/third_party/WebKit/public/web/modules/serviceworker/WebServiceWorkerContextClient.h b/third_party/WebKit/public/web/modules/serviceworker/WebServiceWorkerContextClient.h
index e9777cac149c3c97cda2d77c4ca822b48be418fc..b400f012f2ccd4428df7e196902d3f514eb4ea0b 100644
--- a/third_party/WebKit/public/web/modules/serviceworker/WebServiceWorkerContextClient.h
+++ b/third_party/WebKit/public/web/modules/serviceworker/WebServiceWorkerContextClient.h
@@ -31,8 +31,9 @@
#ifndef WebServiceWorkerContextClient_h
#define WebServiceWorkerContextClient_h
+#include <v8.h>
#include <memory>
-
+#include "mojo/public/cpp/system/data_pipe.h"
#include "public/platform/WebMessagePortChannel.h"
#include "public/platform/WebURL.h"
#include "public/platform/modules/serviceworker/WebServiceWorkerClientsClaimCallbacks.h"
@@ -171,9 +172,15 @@ class WebServiceWorkerContextClient {
// dispatchFetchEvent respectively.
virtual void respondToFetchEvent(int fetchEventID, double eventDispatchTime) {
}
- virtual void respondToFetchEvent(int fetchEventID,
- const WebServiceWorkerResponse& response,
- double eventDispatchTime) {}
+ virtual void respondToFetchEventWithResponse(
+ int fetchEventID,
+ const WebServiceWorkerResponse& response,
+ double eventDispatchTime) {}
+ virtual void respondToFetchEventWithResponseStream(
+ int fetchEventID,
+ const WebServiceWorkerResponse& response,
+ mojo::ScopedDataPipeConsumerHandle data_stream,
+ double eventDispatchTime) {}
virtual void respondToPaymentRequestEvent(
int eventId,
const WebPaymentAppResponse& response,
« no previous file with comments | « third_party/WebKit/Source/web/ServiceWorkerGlobalScopeClientImpl.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698