| 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"; |
| 11 import "third_party/WebKit/public/platform/modules/background_sync/background_sy
nc.mojom"; | 11 import "third_party/WebKit/public/platform/modules/background_sync/background_sy
nc.mojom"; |
| 12 import "third_party/WebKit/public/platform/modules/fetch/request.mojom"; |
| 12 import "third_party/WebKit/public/platform/modules/serviceworker/service_worker_
event_status.mojom"; | 13 import "third_party/WebKit/public/platform/modules/serviceworker/service_worker_
event_status.mojom"; |
| 13 import "url/mojo/origin.mojom"; | 14 import "url/mojo/origin.mojom"; |
| 14 | 15 |
| 15 [Native] | 16 [Native] |
| 16 struct PlatformNotificationData; | 17 struct PlatformNotificationData; |
| 17 | 18 |
| 18 [Native] | 19 [Native] |
| 19 struct PushEventPayload; | 20 struct PushEventPayload; |
| 20 | 21 |
| 21 [Native] | 22 [Native] |
| 22 struct ServiceWorkerFetchRequest; | |
| 23 | |
| 24 [Native] | |
| 25 struct ExtendableMessageEventSource; | 23 struct ExtendableMessageEventSource; |
| 26 | 24 |
| 27 enum BackgroundFetchState { | 25 enum BackgroundFetchState { |
| 28 PENDING, | 26 PENDING, |
| 29 SUCCEEDED, | 27 SUCCEEDED, |
| 30 FAILED | 28 FAILED |
| 31 }; | 29 }; |
| 32 | 30 |
| 33 struct FetchEventPreloadHandle { | 31 struct FetchEventPreloadHandle { |
| 34 URLLoader url_loader; | 32 URLLoader url_loader; |
| (...skipping 14 matching lines...) Expand all Loading... |
| 49 => (blink.mojom.ServiceWorkerEventStatus status, | 47 => (blink.mojom.ServiceWorkerEventStatus status, |
| 50 mojo.common.mojom.Time dispatch_event_time); | 48 mojo.common.mojom.Time dispatch_event_time); |
| 51 DispatchBackgroundFetchAbortEvent(string tag) | 49 DispatchBackgroundFetchAbortEvent(string tag) |
| 52 => (blink.mojom.ServiceWorkerEventStatus status, | 50 => (blink.mojom.ServiceWorkerEventStatus status, |
| 53 mojo.common.mojom.Time dispatch_event_time); | 51 mojo.common.mojom.Time dispatch_event_time); |
| 54 DispatchBackgroundFetchClickEvent(string tag, BackgroundFetchState state) | 52 DispatchBackgroundFetchClickEvent(string tag, BackgroundFetchState state) |
| 55 => (blink.mojom.ServiceWorkerEventStatus status, | 53 => (blink.mojom.ServiceWorkerEventStatus status, |
| 56 mojo.common.mojom.Time dispatch_event_time); | 54 mojo.common.mojom.Time dispatch_event_time); |
| 57 // |fetch_event_id| is used internally when sending the response back to the | 55 // |fetch_event_id| is used internally when sending the response back to the |
| 58 // browser process. | 56 // browser process. |
| 59 DispatchFetchEvent(int32 fetch_event_id, ServiceWorkerFetchRequest request, | 57 DispatchFetchEvent(int32 fetch_event_id, blink.mojom.FetchAPIRequest request, |
| 60 FetchEventPreloadHandle? preload_handle) | 58 FetchEventPreloadHandle? preload_handle) |
| 61 => (blink.mojom.ServiceWorkerEventStatus status, | 59 => (blink.mojom.ServiceWorkerEventStatus status, |
| 62 mojo.common.mojom.Time dispatch_event_time); | 60 mojo.common.mojom.Time dispatch_event_time); |
| 63 DispatchNotificationClickEvent(string notification_id, | 61 DispatchNotificationClickEvent(string notification_id, |
| 64 PlatformNotificationData notification_data, | 62 PlatformNotificationData notification_data, |
| 65 int32 action_index, | 63 int32 action_index, |
| 66 mojo.common.mojom.String16? reply) | 64 mojo.common.mojom.String16? reply) |
| 67 => (blink.mojom.ServiceWorkerEventStatus status, | 65 => (blink.mojom.ServiceWorkerEventStatus status, |
| 68 mojo.common.mojom.Time dispatch_event_time); | 66 mojo.common.mojom.Time dispatch_event_time); |
| 69 DispatchNotificationCloseEvent(string notification_id, | 67 DispatchNotificationCloseEvent(string notification_id, |
| (...skipping 15 matching lines...) Expand all Loading... |
| 85 DispatchExtendableMessageEvent(ExtendableMessageEvent event) | 83 DispatchExtendableMessageEvent(ExtendableMessageEvent event) |
| 86 => (blink.mojom.ServiceWorkerEventStatus status, | 84 => (blink.mojom.ServiceWorkerEventStatus status, |
| 87 mojo.common.mojom.Time dispatch_event_time); | 85 mojo.common.mojom.Time dispatch_event_time); |
| 88 | 86 |
| 89 // Pings the service worker to check if it is responsive. If the callback is | 87 // Pings the service worker to check if it is responsive. If the callback is |
| 90 // not called within a certain period of time, the browser will terminate the | 88 // not called within a certain period of time, the browser will terminate the |
| 91 // worker. Unlike the other functions in this interface, Ping() does not | 89 // worker. Unlike the other functions in this interface, Ping() does not |
| 92 // dispatch an event. | 90 // dispatch an event. |
| 93 Ping() => (); | 91 Ping() => (); |
| 94 }; | 92 }; |
| OLD | NEW |