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 18 matching lines...) Expand all Loading... | |
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<handle<message_pipe>> message_ports; | 35 array<handle<message_pipe>> message_ports; |
36 ExtendableMessageEventSource source; | 36 ExtendableMessageEventSource source; |
37 }; | 37 }; |
38 | 38 |
39 interface PaymentAppResponseCallback { | |
40 OnPaymentAppResponse(payments.mojom.PaymentAppResponse response, | |
shimazu
2017/03/08 01:39:39
Could you move the callback to the directory for p
zino
2017/03/19 04:47:23
Done.
| |
41 mojo.common.mojom.Time dispatch_event_time); | |
42 }; | |
43 | |
39 // Renderer-side interface bound to ServiceWorkerContextClient for dispatching | 44 // Renderer-side interface bound to ServiceWorkerContextClient for dispatching |
40 // events. | 45 // events. |
41 interface ServiceWorkerEventDispatcher { | 46 interface ServiceWorkerEventDispatcher { |
42 DispatchActivateEvent() | 47 DispatchActivateEvent() |
43 => (blink.mojom.ServiceWorkerEventStatus status, | 48 => (blink.mojom.ServiceWorkerEventStatus status, |
44 mojo.common.mojom.Time dispatch_event_time); | 49 mojo.common.mojom.Time dispatch_event_time); |
45 // |fetch_event_id| is used internally when sending the response back to the | 50 // |fetch_event_id| is used internally when sending the response back to the |
46 // browser process. | 51 // browser process. |
47 DispatchFetchEvent(int32 fetch_event_id, ServiceWorkerFetchRequest request, | 52 DispatchFetchEvent(int32 fetch_event_id, ServiceWorkerFetchRequest request, |
48 FetchEventPreloadHandle? preload_handle) | 53 FetchEventPreloadHandle? preload_handle) |
(...skipping 11 matching lines...) Expand all Loading... | |
60 mojo.common.mojom.Time dispatch_event_time); | 65 mojo.common.mojom.Time dispatch_event_time); |
61 DispatchPushEvent(PushEventPayload payload) | 66 DispatchPushEvent(PushEventPayload payload) |
62 => (blink.mojom.ServiceWorkerEventStatus status, | 67 => (blink.mojom.ServiceWorkerEventStatus status, |
63 mojo.common.mojom.Time dispatch_event_time); | 68 mojo.common.mojom.Time dispatch_event_time); |
64 // Arguments are passed to the event handler as parameters of SyncEvent. | 69 // Arguments are passed to the event handler as parameters of SyncEvent. |
65 // Ref: https://wicg.github.io/BackgroundSync/spec/#sync-event | 70 // Ref: https://wicg.github.io/BackgroundSync/spec/#sync-event |
66 DispatchSyncEvent(string tag, | 71 DispatchSyncEvent(string tag, |
67 blink.mojom.BackgroundSyncEventLastChance last_chance) | 72 blink.mojom.BackgroundSyncEventLastChance last_chance) |
68 => (blink.mojom.ServiceWorkerEventStatus status, | 73 => (blink.mojom.ServiceWorkerEventStatus status, |
69 mojo.common.mojom.Time dispatch_event_time); | 74 mojo.common.mojom.Time dispatch_event_time); |
70 DispatchPaymentRequestEvent(payments.mojom.PaymentAppRequest app_request) | 75 DispatchPaymentRequestEvent(int32 event_id, |
shimazu
2017/03/08 01:39:39
|payment_response_id|
zino
2017/03/19 04:47:23
Done.
| |
76 payments.mojom.PaymentAppRequest app_request, | |
77 PaymentAppResponseCallback response_callback) | |
71 => (blink.mojom.ServiceWorkerEventStatus status, | 78 => (blink.mojom.ServiceWorkerEventStatus status, |
72 mojo.common.mojom.Time dispatch_event_time); | 79 mojo.common.mojom.Time dispatch_event_time); |
73 DispatchExtendableMessageEvent(ExtendableMessageEvent event) | 80 DispatchExtendableMessageEvent(ExtendableMessageEvent event) |
74 => (blink.mojom.ServiceWorkerEventStatus status, | 81 => (blink.mojom.ServiceWorkerEventStatus status, |
75 mojo.common.mojom.Time dispatch_event_time); | 82 mojo.common.mojom.Time dispatch_event_time); |
76 }; | 83 }; |
OLD | NEW |