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

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

Issue 2703343002: ServiceWorker: Use mojo's data pipe for respondWith(stream) (Closed)
Patch Set: Updated comments 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 e45583cb91ee7d80258285f00d803e1f9d55cdb9..1bd34470b19c9e3b3368245d3688c40abf1a12a7 100644
--- a/third_party/WebKit/Source/web/ServiceWorkerGlobalScopeClientImpl.cpp
+++ b/third_party/WebKit/Source/web/ServiceWorkerGlobalScopeClientImpl.cpp
@@ -133,18 +133,28 @@ void ServiceWorkerGlobalScopeClientImpl::RespondToFetchEvent(
client_.RespondToFetchEvent(fetch_event_id, event_dispatch_time);
}
-void ServiceWorkerGlobalScopeClientImpl::RespondToPaymentRequestEvent(
- int event_id,
- const WebPaymentAppResponse& response,
- double event_dispatch_time) {
- client_.RespondToPaymentRequestEvent(event_id, response, event_dispatch_time);
+void ServiceWorkerGlobalScopeClientImpl::RespondToFetchEventWithResponse(
+ int fetchEventID,
+ const WebServiceWorkerResponse& response,
+ double eventDispatchTime) {
+ client_.RespondToFetchEventWithResponse(fetchEventID, response,
+ eventDispatchTime);
}
-void ServiceWorkerGlobalScopeClientImpl::RespondToFetchEvent(
- int fetch_event_id,
+void ServiceWorkerGlobalScopeClientImpl::RespondToFetchEventWithResponseStream(
+ int fetchEventID,
const WebServiceWorkerResponse& response,
- double event_dispatch_time) {
- client_.RespondToFetchEvent(fetch_event_id, response, event_dispatch_time);
+ WebServiceWorkerStreamHandle* streamHandle,
+ double eventDispatchTime) {
+ client_.RespondToFetchEventWithResponseStream(
+ fetchEventID, response, streamHandle, eventDispatchTime);
+}
+
+void ServiceWorkerGlobalScopeClientImpl::RespondToPaymentRequestEvent(
+ int eventID,
+ const WebPaymentAppResponse& response,
+ double eventDispatchTime) {
+ client_.RespondToPaymentRequestEvent(eventID, response, eventDispatchTime);
}
void ServiceWorkerGlobalScopeClientImpl::DidHandleFetchEvent(

Powered by Google App Engine
This is Rietveld 408576698