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 14 matching lines...) Expand all Loading... |
25 struct ExtendableMessageEventSource; | 25 struct ExtendableMessageEventSource; |
26 | 26 |
27 struct FetchEventPreloadHandle { | 27 struct FetchEventPreloadHandle { |
28 URLLoader url_loader; | 28 URLLoader url_loader; |
29 URLLoaderClient& url_loader_client_request; | 29 URLLoaderClient& url_loader_client_request; |
30 }; | 30 }; |
31 | 31 |
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<int32> message_ports; | 35 array<handle<message_pipe>> message_ports; |
36 array<int32> new_routing_ids; | |
37 ExtendableMessageEventSource source; | 36 ExtendableMessageEventSource source; |
38 }; | 37 }; |
39 | 38 |
40 // Renderer-side interface bound to ServiceWorkerContextClient for dispatching | 39 // Renderer-side interface bound to ServiceWorkerContextClient for dispatching |
41 // events. | 40 // events. |
42 interface ServiceWorkerEventDispatcher { | 41 interface ServiceWorkerEventDispatcher { |
43 // |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 |
44 // browser process. | 43 // browser process. |
45 DispatchFetchEvent(int32 fetch_event_id, ServiceWorkerFetchRequest request, | 44 DispatchFetchEvent(int32 fetch_event_id, ServiceWorkerFetchRequest request, |
46 FetchEventPreloadHandle? preload_handle) | 45 FetchEventPreloadHandle? preload_handle) |
(...skipping 18 matching lines...) Expand all Loading... |
65 blink.mojom.BackgroundSyncEventLastChance last_chance) | 64 blink.mojom.BackgroundSyncEventLastChance last_chance) |
66 => (blink.mojom.ServiceWorkerEventStatus status, | 65 => (blink.mojom.ServiceWorkerEventStatus status, |
67 mojo.common.mojom.Time dispatch_event_time); | 66 mojo.common.mojom.Time dispatch_event_time); |
68 DispatchPaymentRequestEvent(payments.mojom.PaymentAppRequest app_request) | 67 DispatchPaymentRequestEvent(payments.mojom.PaymentAppRequest app_request) |
69 => (blink.mojom.ServiceWorkerEventStatus status, | 68 => (blink.mojom.ServiceWorkerEventStatus status, |
70 mojo.common.mojom.Time dispatch_event_time); | 69 mojo.common.mojom.Time dispatch_event_time); |
71 DispatchExtendableMessageEvent(ExtendableMessageEvent event) | 70 DispatchExtendableMessageEvent(ExtendableMessageEvent event) |
72 => (blink.mojom.ServiceWorkerEventStatus status, | 71 => (blink.mojom.ServiceWorkerEventStatus status, |
73 mojo.common.mojom.Time dispatch_event_time); | 72 mojo.common.mojom.Time dispatch_event_time); |
74 }; | 73 }; |
OLD | NEW |