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

Side by Side Diff: content/renderer/service_worker/service_worker_context_client.h

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 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_CLIENT_H_ 5 #ifndef CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_CLIENT_H_
6 #define CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_CLIENT_H_ 6 #define CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_CLIENT_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 void DidHandleBackgroundFetchedEvent(int request_id, 152 void DidHandleBackgroundFetchedEvent(int request_id,
153 blink::WebServiceWorkerEventResult, 153 blink::WebServiceWorkerEventResult,
154 double dispatch_event_time) override; 154 double dispatch_event_time) override;
155 void DidHandleExtendableMessageEvent( 155 void DidHandleExtendableMessageEvent(
156 int request_id, 156 int request_id,
157 blink::WebServiceWorkerEventResult result, 157 blink::WebServiceWorkerEventResult result,
158 double dispatch_event_time) override; 158 double dispatch_event_time) override;
159 void DidHandleInstallEvent(int request_id, 159 void DidHandleInstallEvent(int request_id,
160 blink::WebServiceWorkerEventResult result, 160 blink::WebServiceWorkerEventResult result,
161 double event_dispatch_time) override; 161 double event_dispatch_time) override;
162 void RespondToFetchEvent(int fetch_event_id, 162 void RespondToFetchEventWithNoResponse(int fetch_event_id,
163 double event_dispatch_time) override; 163 double event_dispatch_time) override;
164 void RespondToFetchEvent(int fetch_event_id, 164 void RespondToFetchEvent(int fetch_event_id,
165 const blink::WebServiceWorkerResponse& response, 165 const blink::WebServiceWorkerResponse& response,
166 double event_dispatch_time) override; 166 double event_dispatch_time) override;
167 void RespondToFetchEventWithResponseStream(
168 int fetch_event_id,
169 const blink::WebServiceWorkerResponse& response,
170 blink::WebServiceWorkerStreamHandle* web_body_as_stream,
171 double event_dispatch_time) override;
167 void DidHandleFetchEvent(int fetch_event_id, 172 void DidHandleFetchEvent(int fetch_event_id,
168 blink::WebServiceWorkerEventResult result, 173 blink::WebServiceWorkerEventResult result,
169 double dispatch_event_time) override; 174 double dispatch_event_time) override;
170 void DidHandleNotificationClickEvent( 175 void DidHandleNotificationClickEvent(
171 int request_id, 176 int request_id,
172 blink::WebServiceWorkerEventResult result, 177 blink::WebServiceWorkerEventResult result,
173 double dispatch_event_time) override; 178 double dispatch_event_time) override;
174 void DidHandleNotificationCloseEvent( 179 void DidHandleNotificationCloseEvent(
175 int request_id, 180 int request_id,
176 blink::WebServiceWorkerEventResult result, 181 blink::WebServiceWorkerEventResult result,
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
239 const std::string& tag, 244 const std::string& tag,
240 const std::vector<BackgroundFetchSettledFetch>& fetches, 245 const std::vector<BackgroundFetchSettledFetch>& fetches,
241 const DispatchBackgroundFetchFailEventCallback& callback) override; 246 const DispatchBackgroundFetchFailEventCallback& callback) override;
242 void DispatchBackgroundFetchedEvent( 247 void DispatchBackgroundFetchedEvent(
243 const std::string& tag, 248 const std::string& tag,
244 const std::vector<BackgroundFetchSettledFetch>& fetches, 249 const std::vector<BackgroundFetchSettledFetch>& fetches,
245 const DispatchBackgroundFetchedEventCallback& callback) override; 250 const DispatchBackgroundFetchedEventCallback& callback) override;
246 void DispatchExtendableMessageEvent( 251 void DispatchExtendableMessageEvent(
247 mojom::ExtendableMessageEventPtr event, 252 mojom::ExtendableMessageEventPtr event,
248 const DispatchExtendableMessageEventCallback& callback) override; 253 const DispatchExtendableMessageEventCallback& callback) override;
249 void DispatchFetchEvent(int fetch_event_id, 254 void DispatchFetchEvent(
250 const ServiceWorkerFetchRequest& request, 255 int fetch_event_id,
251 mojom::FetchEventPreloadHandlePtr preload_handle, 256 const ServiceWorkerFetchRequest& request,
252 const DispatchFetchEventCallback& callback) override; 257 mojom::FetchEventPreloadHandlePtr preload_handle,
258 mojom::ServiceWorkerFetchResponseCallbackPtr response_callback,
259 const DispatchFetchEventCallback& callback) override;
253 void DispatchNotificationClickEvent( 260 void DispatchNotificationClickEvent(
254 const std::string& notification_id, 261 const std::string& notification_id,
255 const PlatformNotificationData& notification_data, 262 const PlatformNotificationData& notification_data,
256 int action_index, 263 int action_index,
257 const base::Optional<base::string16>& reply, 264 const base::Optional<base::string16>& reply,
258 const DispatchNotificationClickEventCallback& callback) override; 265 const DispatchNotificationClickEventCallback& callback) override;
259 void DispatchNotificationCloseEvent( 266 void DispatchNotificationCloseEvent(
260 const std::string& notification_id, 267 const std::string& notification_id,
261 const PlatformNotificationData& notification_data, 268 const PlatformNotificationData& notification_data,
262 const DispatchNotificationCloseEventCallback& callback) override; 269 const DispatchNotificationCloseEventCallback& callback) override;
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
345 // Initialized on the worker thread in workerContextStarted and 352 // Initialized on the worker thread in workerContextStarted and
346 // destructed on the worker thread in willDestroyWorkerContext. 353 // destructed on the worker thread in willDestroyWorkerContext.
347 std::unique_ptr<WorkerContextData> context_; 354 std::unique_ptr<WorkerContextData> context_;
348 355
349 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerContextClient); 356 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerContextClient);
350 }; 357 };
351 358
352 } // namespace content 359 } // namespace content
353 360
354 #endif // CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_CLIENT_H_ 361 #endif // CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698