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/mojom/payment_app.mojom"; | 7 import "components/payments/mojom/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 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
125 DispatchPushEvent(PushEventPayload payload) | 125 DispatchPushEvent(PushEventPayload payload) |
126 => (blink.mojom.ServiceWorkerEventStatus status, | 126 => (blink.mojom.ServiceWorkerEventStatus status, |
127 mojo.common.mojom.Time dispatch_event_time); | 127 mojo.common.mojom.Time dispatch_event_time); |
128 // Arguments are passed to the event handler as parameters of SyncEvent. | 128 // Arguments are passed to the event handler as parameters of SyncEvent. |
129 // Ref: https://wicg.github.io/BackgroundSync/spec/#sync-event | 129 // Ref: https://wicg.github.io/BackgroundSync/spec/#sync-event |
130 DispatchSyncEvent(string tag, | 130 DispatchSyncEvent(string tag, |
131 blink.mojom.BackgroundSyncEventLastChance last_chance) | 131 blink.mojom.BackgroundSyncEventLastChance last_chance) |
132 => (blink.mojom.ServiceWorkerEventStatus status, | 132 => (blink.mojom.ServiceWorkerEventStatus status, |
133 mojo.common.mojom.Time dispatch_event_time); | 133 mojo.common.mojom.Time dispatch_event_time); |
134 DispatchPaymentRequestEvent(int32 payment_request_id, | 134 DispatchPaymentRequestEvent(int32 payment_request_id, |
135 payments.mojom.PaymentAppRequest app_request, | 135 payments.mojom.PaymentRequestEventData request_dat
a, |
136 payments.mojom.PaymentAppResponseCallback response
_callback) | 136 payments.mojom.PaymentAppResponseCallback response
_callback) |
137 => (blink.mojom.ServiceWorkerEventStatus status, | 137 => (blink.mojom.ServiceWorkerEventStatus status, |
138 mojo.common.mojom.Time dispatch_event_time); | 138 mojo.common.mojom.Time dispatch_event_time); |
139 DispatchExtendableMessageEvent(ExtendableMessageEvent event) | 139 DispatchExtendableMessageEvent(ExtendableMessageEvent event) |
140 => (blink.mojom.ServiceWorkerEventStatus status, | 140 => (blink.mojom.ServiceWorkerEventStatus status, |
141 mojo.common.mojom.Time dispatch_event_time); | 141 mojo.common.mojom.Time dispatch_event_time); |
142 | 142 |
143 // Pings the service worker to check if it is responsive. If the callback is | 143 // Pings the service worker to check if it is responsive. If the callback is |
144 // not called within a certain period of time, the browser will terminate the | 144 // not called within a certain period of time, the browser will terminate the |
145 // worker. Unlike the other functions in this interface, Ping() does not | 145 // worker. Unlike the other functions in this interface, Ping() does not |
146 // dispatch an event. | 146 // dispatch an event. |
147 Ping() => (); | 147 Ping() => (); |
148 }; | 148 }; |
149 | 149 |
150 // This interface is passed from the browser to the renderer with | 150 // This interface is passed from the browser to the renderer with |
151 // DispatchInstallEvent. The ordering between RegisterForeignFetchScopes and the | 151 // DispatchInstallEvent. The ordering between RegisterForeignFetchScopes and the |
152 // callback of DispatchInstallEvent should be preserved. | 152 // callback of DispatchInstallEvent should be preserved. |
153 interface ServiceWorkerInstallEventMethods { | 153 interface ServiceWorkerInstallEventMethods { |
154 RegisterForeignFetchScopes(array<url.mojom.Url> sub_scopes, | 154 RegisterForeignFetchScopes(array<url.mojom.Url> sub_scopes, |
155 array<url.mojom.Origin> origins); | 155 array<url.mojom.Origin> origins); |
156 }; | 156 }; |
OLD | NEW |