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

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

Issue 2703343002: ServiceWorker: Use mojo's data pipe for respondWith(stream) (Closed)
Patch Set: IFRAME_URL -> SCOPE 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..647ac545da31a42d8e19c167c5548643486b92b8 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,
+void ServiceWorkerGlobalScopeClientImpl::RespondToFetchEventWithResponse(
+ int fetch_event_id,
+ const WebServiceWorkerResponse& response,
double event_dispatch_time) {
- client_.RespondToPaymentRequestEvent(event_id, response, event_dispatch_time);
+ client_.RespondToFetchEventWithResponse(fetch_event_id, response,
+ event_dispatch_time);
}
-void ServiceWorkerGlobalScopeClientImpl::RespondToFetchEvent(
+void ServiceWorkerGlobalScopeClientImpl::RespondToFetchEventWithResponseStream(
int fetch_event_id,
const WebServiceWorkerResponse& response,
+ WebServiceWorkerStreamHandle* stream_handle,
double event_dispatch_time) {
- client_.RespondToFetchEvent(fetch_event_id, response, event_dispatch_time);
+ client_.RespondToFetchEventWithResponseStream(
+ fetch_event_id, response, stream_handle, 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::DidHandleFetchEvent(

Powered by Google App Engine
This is Rietveld 408576698