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/fetch_api_request.mojom "; | 12 import "third_party/WebKit/public/platform/modules/fetch/fetch_api_request.mojom "; |
13 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"; |
14 import "url/mojo/origin.mojom"; | 14 import "url/mojo/origin.mojom"; |
15 import "url/mojo/url.mojom"; | |
15 | 16 |
16 [Native] | 17 [Native] |
17 struct PlatformNotificationData; | 18 struct PlatformNotificationData; |
18 | 19 |
19 [Native] | 20 [Native] |
20 struct PushEventPayload; | 21 struct PushEventPayload; |
21 | 22 |
22 [Native] | 23 [Native] |
23 struct ServiceWorkerResponse; | 24 struct ServiceWorkerResponse; |
24 | 25 |
(...skipping 21 matching lines...) Expand all Loading... | |
46 struct ExtendableMessageEvent { | 47 struct ExtendableMessageEvent { |
47 mojo.common.mojom.String16 message; | 48 mojo.common.mojom.String16 message; |
48 url.mojom.Origin source_origin; | 49 url.mojom.Origin source_origin; |
49 array<handle<message_pipe>> message_ports; | 50 array<handle<message_pipe>> message_ports; |
50 ExtendableMessageEventSource source; | 51 ExtendableMessageEventSource source; |
51 }; | 52 }; |
52 | 53 |
53 // Renderer-side interface bound to ServiceWorkerContextClient for dispatching | 54 // Renderer-side interface bound to ServiceWorkerContextClient for dispatching |
54 // events. | 55 // events. |
55 interface ServiceWorkerEventDispatcher { | 56 interface ServiceWorkerEventDispatcher { |
57 DispatchInstallEvent(associated InstallEventMethod method) | |
58 => (blink.mojom.ServiceWorkerEventStatus status, | |
59 bool has_fetch_handler, | |
60 mojo.common.mojom.Time dispatch_event_time); | |
56 DispatchActivateEvent() | 61 DispatchActivateEvent() |
57 => (blink.mojom.ServiceWorkerEventStatus status, | 62 => (blink.mojom.ServiceWorkerEventStatus status, |
58 mojo.common.mojom.Time dispatch_event_time); | 63 mojo.common.mojom.Time dispatch_event_time); |
59 DispatchBackgroundFetchAbortEvent(string tag) | 64 DispatchBackgroundFetchAbortEvent(string tag) |
60 => (blink.mojom.ServiceWorkerEventStatus status, | 65 => (blink.mojom.ServiceWorkerEventStatus status, |
61 mojo.common.mojom.Time dispatch_event_time); | 66 mojo.common.mojom.Time dispatch_event_time); |
62 DispatchBackgroundFetchClickEvent(string tag, BackgroundFetchState state) | 67 DispatchBackgroundFetchClickEvent(string tag, BackgroundFetchState state) |
63 => (blink.mojom.ServiceWorkerEventStatus status, | 68 => (blink.mojom.ServiceWorkerEventStatus status, |
64 mojo.common.mojom.Time dispatch_event_time); | 69 mojo.common.mojom.Time dispatch_event_time); |
65 DispatchBackgroundFetchFailEvent(string tag, | 70 DispatchBackgroundFetchFailEvent(string tag, |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
103 DispatchExtendableMessageEvent(ExtendableMessageEvent event) | 108 DispatchExtendableMessageEvent(ExtendableMessageEvent event) |
104 => (blink.mojom.ServiceWorkerEventStatus status, | 109 => (blink.mojom.ServiceWorkerEventStatus status, |
105 mojo.common.mojom.Time dispatch_event_time); | 110 mojo.common.mojom.Time dispatch_event_time); |
106 | 111 |
107 // Pings the service worker to check if it is responsive. If the callback is | 112 // Pings the service worker to check if it is responsive. If the callback is |
108 // not called within a certain period of time, the browser will terminate the | 113 // not called within a certain period of time, the browser will terminate the |
109 // worker. Unlike the other functions in this interface, Ping() does not | 114 // worker. Unlike the other functions in this interface, Ping() does not |
110 // dispatch an event. | 115 // dispatch an event. |
111 Ping() => (); | 116 Ping() => (); |
112 }; | 117 }; |
118 | |
119 interface InstallEventMethod { | |
shimazu
2017/04/05 05:01:27
Could you rename it to ServiceWorkerInstallEventMe
| |
120 Register(array<url.mojom.Url> sub_scopes, array<url.mojom.Origin> origins); | |
shimazu
2017/04/05 05:01:27
Could you rename it to RegisterForeignFetchScopes?
| |
121 }; | |
OLD | NEW |