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