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

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

Issue 2703343002: ServiceWorker: Use mojo's data pipe for respondWith(stream) (Closed)
Patch Set: Used TEST_P to test closing the connection first and On{Aborted,Completed} first 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..49bc013e2a7c944a6c4dec8a4823d8f6732d9ace 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,
+ WebServiceWorkerStreamHandle* streamHandle,
double eventDispatchTime) {
- m_client.respondToFetchEvent(fetchEventID, response, eventDispatchTime);
+ m_client.respondToFetchEventWithResponseStream(
+ fetchEventID, response, streamHandle, 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