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 22 matching lines...) Expand all Loading... |
33 mojo.common.mojom.String16 message; | 33 mojo.common.mojom.String16 message; |
34 url.mojom.Origin source_origin; | 34 url.mojom.Origin source_origin; |
35 array<int32> message_ports; | 35 array<int32> message_ports; |
36 array<int32> new_routing_ids; | 36 array<int32> new_routing_ids; |
37 ExtendableMessageEventSource source; | 37 ExtendableMessageEventSource source; |
38 }; | 38 }; |
39 | 39 |
40 // Renderer-side interface bound to ServiceWorkerContextClient for dispatching | 40 // Renderer-side interface bound to ServiceWorkerContextClient for dispatching |
41 // events. | 41 // events. |
42 interface ServiceWorkerEventDispatcher { | 42 interface ServiceWorkerEventDispatcher { |
| 43 DispatchActivateEvent() |
| 44 => (blink.mojom.ServiceWorkerEventStatus status, |
| 45 mojo.common.mojom.Time dispatch_event_time); |
43 // |fetch_event_id| is used internally when sending the response back to the | 46 // |fetch_event_id| is used internally when sending the response back to the |
44 // browser process. | 47 // browser process. |
45 DispatchFetchEvent(int32 fetch_event_id, ServiceWorkerFetchRequest request, | 48 DispatchFetchEvent(int32 fetch_event_id, ServiceWorkerFetchRequest request, |
46 FetchEventPreloadHandle? preload_handle) | 49 FetchEventPreloadHandle? preload_handle) |
47 => (blink.mojom.ServiceWorkerEventStatus status, | 50 => (blink.mojom.ServiceWorkerEventStatus status, |
48 mojo.common.mojom.Time dispatch_event_time); | 51 mojo.common.mojom.Time dispatch_event_time); |
49 DispatchNotificationClickEvent(string notification_id, | 52 DispatchNotificationClickEvent(string notification_id, |
50 PlatformNotificationData notification_data, | 53 PlatformNotificationData notification_data, |
51 int32 action_index, | 54 int32 action_index, |
52 mojo.common.mojom.String16? reply) | 55 mojo.common.mojom.String16? reply) |
(...skipping 12 matching lines...) Expand all Loading... |
65 blink.mojom.BackgroundSyncEventLastChance last_chance) | 68 blink.mojom.BackgroundSyncEventLastChance last_chance) |
66 => (blink.mojom.ServiceWorkerEventStatus status, | 69 => (blink.mojom.ServiceWorkerEventStatus status, |
67 mojo.common.mojom.Time dispatch_event_time); | 70 mojo.common.mojom.Time dispatch_event_time); |
68 DispatchPaymentRequestEvent(payments.mojom.PaymentAppRequest app_request) | 71 DispatchPaymentRequestEvent(payments.mojom.PaymentAppRequest app_request) |
69 => (blink.mojom.ServiceWorkerEventStatus status, | 72 => (blink.mojom.ServiceWorkerEventStatus status, |
70 mojo.common.mojom.Time dispatch_event_time); | 73 mojo.common.mojom.Time dispatch_event_time); |
71 DispatchExtendableMessageEvent(ExtendableMessageEvent event) | 74 DispatchExtendableMessageEvent(ExtendableMessageEvent event) |
72 => (blink.mojom.ServiceWorkerEventStatus status, | 75 => (blink.mojom.ServiceWorkerEventStatus status, |
73 mojo.common.mojom.Time dispatch_event_time); | 76 mojo.common.mojom.Time dispatch_event_time); |
74 }; | 77 }; |
OLD | NEW |