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

Side by Side Diff: third_party/WebKit/Source/web/ServiceWorkerGlobalScopeClientImpl.cpp

Issue 2703343002: ServiceWorker: Use mojo's data pipe for respondWith(stream) (Closed)
Patch Set: Addressed comments from kinuko and haraken 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2014 Google Inc. All rights reserved. 2 * Copyright (C) 2014 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 } 120 }
121 121
122 void ServiceWorkerGlobalScopeClientImpl::DidHandleExtendableMessageEvent( 122 void ServiceWorkerGlobalScopeClientImpl::DidHandleExtendableMessageEvent(
123 int event_id, 123 int event_id,
124 WebServiceWorkerEventResult result, 124 WebServiceWorkerEventResult result,
125 double event_dispatch_time) { 125 double event_dispatch_time) {
126 client_.DidHandleExtendableMessageEvent(event_id, result, 126 client_.DidHandleExtendableMessageEvent(event_id, result,
127 event_dispatch_time); 127 event_dispatch_time);
128 } 128 }
129 129
130 void ServiceWorkerGlobalScopeClientImpl::RespondToFetchEventWithNoResponse(
131 int fetch_event_id,
132 double event_dispatch_time) {
133 client_.RespondToFetchEventWithNoResponse(fetch_event_id,
134 event_dispatch_time);
135 }
136
130 void ServiceWorkerGlobalScopeClientImpl::RespondToFetchEvent( 137 void ServiceWorkerGlobalScopeClientImpl::RespondToFetchEvent(
131 int fetch_event_id, 138 int fetch_event_id,
139 const WebServiceWorkerResponse& response,
132 double event_dispatch_time) { 140 double event_dispatch_time) {
133 client_.RespondToFetchEvent(fetch_event_id, event_dispatch_time); 141 client_.RespondToFetchEvent(fetch_event_id, response, event_dispatch_time);
142 }
143
144 void ServiceWorkerGlobalScopeClientImpl::RespondToFetchEventWithResponseStream(
145 int fetch_event_id,
146 const WebServiceWorkerResponse& response,
147 WebServiceWorkerStreamHandle* stream_handle,
148 double event_dispatch_time) {
149 client_.RespondToFetchEventWithResponseStream(
150 fetch_event_id, response, stream_handle, event_dispatch_time);
134 } 151 }
135 152
136 void ServiceWorkerGlobalScopeClientImpl::RespondToPaymentRequestEvent( 153 void ServiceWorkerGlobalScopeClientImpl::RespondToPaymentRequestEvent(
137 int event_id, 154 int event_id,
138 const WebPaymentAppResponse& response, 155 const WebPaymentAppResponse& response,
139 double event_dispatch_time) { 156 double event_dispatch_time) {
140 client_.RespondToPaymentRequestEvent(event_id, response, event_dispatch_time); 157 client_.RespondToPaymentRequestEvent(event_id, response, event_dispatch_time);
141 } 158 }
142 159
143 void ServiceWorkerGlobalScopeClientImpl::RespondToFetchEvent(
144 int fetch_event_id,
145 const WebServiceWorkerResponse& response,
146 double event_dispatch_time) {
147 client_.RespondToFetchEvent(fetch_event_id, response, event_dispatch_time);
148 }
149
150 void ServiceWorkerGlobalScopeClientImpl::DidHandleFetchEvent( 160 void ServiceWorkerGlobalScopeClientImpl::DidHandleFetchEvent(
151 int fetch_event_id, 161 int fetch_event_id,
152 WebServiceWorkerEventResult result, 162 WebServiceWorkerEventResult result,
153 double event_dispatch_time) { 163 double event_dispatch_time) {
154 client_.DidHandleFetchEvent(fetch_event_id, result, event_dispatch_time); 164 client_.DidHandleFetchEvent(fetch_event_id, result, event_dispatch_time);
155 } 165 }
156 166
157 void ServiceWorkerGlobalScopeClientImpl::DidHandleInstallEvent( 167 void ServiceWorkerGlobalScopeClientImpl::DidHandleInstallEvent(
158 int install_event_id, 168 int install_event_id,
159 WebServiceWorkerEventResult result, 169 WebServiceWorkerEventResult result,
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
233 const WebVector<WebURL>& sub_scopes, 243 const WebVector<WebURL>& sub_scopes,
234 const WebVector<WebSecurityOrigin>& origins) { 244 const WebVector<WebSecurityOrigin>& origins) {
235 client_.RegisterForeignFetchScopes(sub_scopes, origins); 245 client_.RegisterForeignFetchScopes(sub_scopes, origins);
236 } 246 }
237 247
238 ServiceWorkerGlobalScopeClientImpl::ServiceWorkerGlobalScopeClientImpl( 248 ServiceWorkerGlobalScopeClientImpl::ServiceWorkerGlobalScopeClientImpl(
239 WebServiceWorkerContextClient& client) 249 WebServiceWorkerContextClient& client)
240 : client_(client) {} 250 : client_(client) {}
241 251
242 } // namespace blink 252 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698