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/content/payment_app.mojom"; | 7 import "components/payments/content/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 DispatchInstallEvent() |
| 43 => (blink.mojom.ServiceWorkerEventStatus status, |
| 44 bool has_fetch_handler, |
| 45 mojo.common.mojom.Time dispatch_event_time); |
42 DispatchActivateEvent() | 46 DispatchActivateEvent() |
43 => (blink.mojom.ServiceWorkerEventStatus status, | 47 => (blink.mojom.ServiceWorkerEventStatus status, |
44 mojo.common.mojom.Time dispatch_event_time); | 48 mojo.common.mojom.Time dispatch_event_time); |
45 // |fetch_event_id| is used internally when sending the response back to the | 49 // |fetch_event_id| is used internally when sending the response back to the |
46 // browser process. | 50 // browser process. |
47 DispatchFetchEvent(int32 fetch_event_id, ServiceWorkerFetchRequest request, | 51 DispatchFetchEvent(int32 fetch_event_id, ServiceWorkerFetchRequest request, |
48 FetchEventPreloadHandle? preload_handle) | 52 FetchEventPreloadHandle? preload_handle) |
49 => (blink.mojom.ServiceWorkerEventStatus status, | 53 => (blink.mojom.ServiceWorkerEventStatus status, |
50 mojo.common.mojom.Time dispatch_event_time); | 54 mojo.common.mojom.Time dispatch_event_time); |
51 DispatchNotificationClickEvent(string notification_id, | 55 DispatchNotificationClickEvent(string notification_id, |
(...skipping 15 matching lines...) Expand all Loading... |
67 blink.mojom.BackgroundSyncEventLastChance last_chance) | 71 blink.mojom.BackgroundSyncEventLastChance last_chance) |
68 => (blink.mojom.ServiceWorkerEventStatus status, | 72 => (blink.mojom.ServiceWorkerEventStatus status, |
69 mojo.common.mojom.Time dispatch_event_time); | 73 mojo.common.mojom.Time dispatch_event_time); |
70 DispatchPaymentRequestEvent(payments.mojom.PaymentAppRequest app_request) | 74 DispatchPaymentRequestEvent(payments.mojom.PaymentAppRequest app_request) |
71 => (blink.mojom.ServiceWorkerEventStatus status, | 75 => (blink.mojom.ServiceWorkerEventStatus status, |
72 mojo.common.mojom.Time dispatch_event_time); | 76 mojo.common.mojom.Time dispatch_event_time); |
73 DispatchExtendableMessageEvent(ExtendableMessageEvent event) | 77 DispatchExtendableMessageEvent(ExtendableMessageEvent event) |
74 => (blink.mojom.ServiceWorkerEventStatus status, | 78 => (blink.mojom.ServiceWorkerEventStatus status, |
75 mojo.common.mojom.Time dispatch_event_time); | 79 mojo.common.mojom.Time dispatch_event_time); |
76 }; | 80 }; |
OLD | NEW |