| OLD | NEW | 
|   1 // Copyright 2016 The Chromium Authors. All rights reserved. |   1 // Copyright 2016 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 module content.mojom; |   5 module content.mojom; | 
|   6  |   6  | 
|   7 import "components/payments/payment_app.mojom"; |   7 import "components/payments/payment_app.mojom"; | 
|   8 import "content/common/url_loader.mojom"; |   8 import "content/common/url_loader.mojom"; | 
|   9 import "mojo/common/string16.mojom"; |   9 import "mojo/common/string16.mojom"; | 
|  10 import "mojo/common/time.mojom"; |  10 import "mojo/common/time.mojom"; | 
| (...skipping 23 matching lines...) Expand all  Loading... | 
|  34   ExtendableMessageEventSource source; |  34   ExtendableMessageEventSource source; | 
|  35 }; |  35 }; | 
|  36  |  36  | 
|  37 // Renderer-side interface bound to ServiceWorkerContextClient for dispatching |  37 // Renderer-side interface bound to ServiceWorkerContextClient for dispatching | 
|  38 // events. |  38 // events. | 
|  39 interface ServiceWorkerEventDispatcher { |  39 interface ServiceWorkerEventDispatcher { | 
|  40   // |fetch_event_id| is used internally when sending the response back to the |  40   // |fetch_event_id| is used internally when sending the response back to the | 
|  41   // browser process. |  41   // browser process. | 
|  42   DispatchFetchEvent(int32 fetch_event_id, ServiceWorkerFetchRequest request, |  42   DispatchFetchEvent(int32 fetch_event_id, ServiceWorkerFetchRequest request, | 
|  43                      FetchEventPreloadHandle? preload_handle) |  43                      FetchEventPreloadHandle? preload_handle) | 
|  44       => (blink.mojom.ServiceWorkerEventStatus status, |  44       => (mojo.common.mojom.TimeTicks dispatch_time_ticks, | 
 |  45           blink.mojom.ServiceWorkerEventStatus status, | 
|  45           mojo.common.mojom.Time dispatch_event_time); |  46           mojo.common.mojom.Time dispatch_event_time); | 
|  46   DispatchPushEvent(PushEventPayload payload) |  47   DispatchPushEvent(PushEventPayload payload) | 
|  47       => (blink.mojom.ServiceWorkerEventStatus status, |  48       => (blink.mojom.ServiceWorkerEventStatus status, | 
|  48           mojo.common.mojom.Time dispatch_event_time); |  49           mojo.common.mojom.Time dispatch_event_time); | 
|  49   // Arguments are passed to the event handler as parameters of SyncEvent. |  50   // Arguments are passed to the event handler as parameters of SyncEvent. | 
|  50   // Ref: https://wicg.github.io/BackgroundSync/spec/#sync-event |  51   // Ref: https://wicg.github.io/BackgroundSync/spec/#sync-event | 
|  51   DispatchSyncEvent(string tag, |  52   DispatchSyncEvent(string tag, | 
|  52                     blink.mojom.BackgroundSyncEventLastChance last_chance) |  53                     blink.mojom.BackgroundSyncEventLastChance last_chance) | 
|  53       => (blink.mojom.ServiceWorkerEventStatus status, |  54       => (blink.mojom.ServiceWorkerEventStatus status, | 
|  54           mojo.common.mojom.Time dispatch_event_time); |  55           mojo.common.mojom.Time dispatch_event_time); | 
|  55   DispatchPaymentRequestEvent(payments.mojom.PaymentAppRequest app_request) |  56   DispatchPaymentRequestEvent(payments.mojom.PaymentAppRequest app_request) | 
|  56       => (blink.mojom.ServiceWorkerEventStatus status, |  57       => (blink.mojom.ServiceWorkerEventStatus status, | 
|  57           mojo.common.mojom.Time dispatch_event_time); |  58           mojo.common.mojom.Time dispatch_event_time); | 
|  58   DispatchExtendableMessageEvent(ExtendableMessageEvent event) |  59   DispatchExtendableMessageEvent(ExtendableMessageEvent event) | 
|  59       => (blink.mojom.ServiceWorkerEventStatus status, |  60       => (blink.mojom.ServiceWorkerEventStatus status, | 
|  60           mojo.common.mojom.Time dispatch_event_time); |  61           mojo.common.mojom.Time dispatch_event_time); | 
|  61 }; |  62 }; | 
| OLD | NEW |