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

Unified Diff: third_party/WebKit/Source/web/ServiceWorkerGlobalScopeClientImpl.cpp

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/web/ServiceWorkerGlobalScopeClientImpl.cpp
diff --git a/third_party/WebKit/Source/web/ServiceWorkerGlobalScopeClientImpl.cpp b/third_party/WebKit/Source/web/ServiceWorkerGlobalScopeClientImpl.cpp
index b10ffc9866d34bfb0d4d25dc272f76cc28330f74..5d62154866451c5fc19c8fac1c056a14101523ab 100644
--- a/third_party/WebKit/Source/web/ServiceWorkerGlobalScopeClientImpl.cpp
+++ b/third_party/WebKit/Source/web/ServiceWorkerGlobalScopeClientImpl.cpp
@@ -131,18 +131,28 @@ void ServiceWorkerGlobalScopeClientImpl::respondToFetchEvent(
m_client.respondToFetchEvent(fetchEventID, eventDispatchTime);
}
-void ServiceWorkerGlobalScopeClientImpl::respondToPaymentRequestEvent(
- int eventID,
- const WebPaymentAppResponse& response,
+void ServiceWorkerGlobalScopeClientImpl::respondToFetchEventWithResponse(
+ int fetchEventID,
+ const WebServiceWorkerResponse& response,
double eventDispatchTime) {
- m_client.respondToPaymentRequestEvent(eventID, response, eventDispatchTime);
+ m_client.respondToFetchEventWithResponse(fetchEventID, response,
+ eventDispatchTime);
}
-void ServiceWorkerGlobalScopeClientImpl::respondToFetchEvent(
+void ServiceWorkerGlobalScopeClientImpl::respondToFetchEventWithResponseStream(
int fetchEventID,
const WebServiceWorkerResponse& response,
+ mojo::ScopedDataPipeConsumerHandle data_stream,
double eventDispatchTime) {
- m_client.respondToFetchEvent(fetchEventID, response, eventDispatchTime);
+ m_client.respondToFetchEventWithResponseStream(
+ fetchEventID, response, std::move(data_stream), eventDispatchTime);
+}
+
+void ServiceWorkerGlobalScopeClientImpl::respondToPaymentRequestEvent(
+ int eventID,
+ const WebPaymentAppResponse& response,
+ double eventDispatchTime) {
+ m_client.respondToPaymentRequestEvent(eventID, response, eventDispatchTime);
}
void ServiceWorkerGlobalScopeClientImpl::didHandleFetchEvent(

Powered by Google App Engine
This is Rietveld 408576698