| Index: content/common/service_worker/service_worker_event_dispatcher.mojom
|
| diff --git a/content/common/service_worker/service_worker_event_dispatcher.mojom b/content/common/service_worker/service_worker_event_dispatcher.mojom
|
| index 2f309bb3bd2729fcd745f61b71b0c43a55cd34f3..69f41ddfaf21a2a56d068103307d292c150f6bde 100644
|
| --- a/content/common/service_worker/service_worker_event_dispatcher.mojom
|
| +++ b/content/common/service_worker/service_worker_event_dispatcher.mojom
|
| @@ -50,6 +50,12 @@ struct ExtendableMessageEvent {
|
| ExtendableMessageEventSource source;
|
| };
|
|
|
| +interface ServiceWorkerFetchResponseReceiver {
|
| + OnResponse(ServiceWorkerResponse response, mojo.common.mojom.Time dispatch_event_time);
|
| + OnResponseStream(ServiceWorkerResponse response, handle<data_pipe_consumer> stream, mojo.common.mojom.Time dispatch_event_time);
|
| + OnFallback(mojo.common.mojom.Time dispatch_event_time);
|
| +};
|
| +
|
| // Renderer-side interface bound to ServiceWorkerContextClient for dispatching
|
| // events.
|
| // Those events expecting such response
|
| @@ -77,7 +83,8 @@ interface ServiceWorkerEventDispatcher {
|
| // |fetch_event_id| is used internally when sending the response back to the
|
| // browser process.
|
| DispatchFetchEvent(int32 fetch_event_id, blink.mojom.FetchAPIRequest request,
|
| - FetchEventPreloadHandle? preload_handle)
|
| + FetchEventPreloadHandle? preload_handle,
|
| + ServiceWorkerFetchResponseReceiver receiver)
|
| => (blink.mojom.ServiceWorkerEventStatus status,
|
| mojo.common.mojom.Time dispatch_event_time);
|
| DispatchNotificationClickEvent(string notification_id,
|
|
|