Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(527)

Side by Side Diff: content/common/service_worker/service_worker_event_dispatcher.mojom

Issue 2682353002: Mojoify the notificationclick and notificationclose events (Closed)
Patch Set: Mojoify the notificationclick and notificationclose events Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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";
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/serviceworker/service_worker_ event_status.mojom"; 12 import "third_party/WebKit/public/platform/modules/serviceworker/service_worker_ event_status.mojom";
13 import "url/mojo/origin.mojom"; 13 import "url/mojo/origin.mojom";
14 14
15 [Native] 15 [Native]
16 struct PlatformNotificationData;
17
18 [Native]
16 struct PushEventPayload; 19 struct PushEventPayload;
17 20
18 [Native] 21 [Native]
19 struct ServiceWorkerFetchRequest; 22 struct ServiceWorkerFetchRequest;
20 23
21 [Native] 24 [Native]
22 struct ExtendableMessageEventSource; 25 struct ExtendableMessageEventSource;
23 26
24 struct FetchEventPreloadHandle { 27 struct FetchEventPreloadHandle {
25 URLLoader url_loader; 28 URLLoader url_loader;
(...skipping 10 matching lines...) Expand all
36 39
37 // Renderer-side interface bound to ServiceWorkerContextClient for dispatching 40 // Renderer-side interface bound to ServiceWorkerContextClient for dispatching
38 // events. 41 // events.
39 interface ServiceWorkerEventDispatcher { 42 interface ServiceWorkerEventDispatcher {
40 // |fetch_event_id| is used internally when sending the response back to the 43 // |fetch_event_id| is used internally when sending the response back to the
41 // browser process. 44 // browser process.
42 DispatchFetchEvent(int32 fetch_event_id, ServiceWorkerFetchRequest request, 45 DispatchFetchEvent(int32 fetch_event_id, ServiceWorkerFetchRequest request,
43 FetchEventPreloadHandle? preload_handle) 46 FetchEventPreloadHandle? preload_handle)
44 => (blink.mojom.ServiceWorkerEventStatus status, 47 => (blink.mojom.ServiceWorkerEventStatus status,
45 mojo.common.mojom.Time dispatch_event_time); 48 mojo.common.mojom.Time dispatch_event_time);
49 DispatchNotificationClickEvent(string notification_id,
50 PlatformNotificationData notification_data,
51 int32 action_index,
52 mojo.common.mojom.String16? reply)
53 => (blink.mojom.ServiceWorkerEventStatus status,
54 mojo.common.mojom.Time dispatch_event_time);
55 DispatchNotificationCloseEvent(string notification_id,
56 PlatformNotificationData notification_data)
57 => (blink.mojom.ServiceWorkerEventStatus status,
58 mojo.common.mojom.Time dispatch_event_time);
46 DispatchPushEvent(PushEventPayload payload) 59 DispatchPushEvent(PushEventPayload payload)
47 => (blink.mojom.ServiceWorkerEventStatus status, 60 => (blink.mojom.ServiceWorkerEventStatus status,
48 mojo.common.mojom.Time dispatch_event_time); 61 mojo.common.mojom.Time dispatch_event_time);
49 // Arguments are passed to the event handler as parameters of SyncEvent. 62 // Arguments are passed to the event handler as parameters of SyncEvent.
50 // Ref: https://wicg.github.io/BackgroundSync/spec/#sync-event 63 // Ref: https://wicg.github.io/BackgroundSync/spec/#sync-event
51 DispatchSyncEvent(string tag, 64 DispatchSyncEvent(string tag,
52 blink.mojom.BackgroundSyncEventLastChance last_chance) 65 blink.mojom.BackgroundSyncEventLastChance last_chance)
53 => (blink.mojom.ServiceWorkerEventStatus status, 66 => (blink.mojom.ServiceWorkerEventStatus status,
54 mojo.common.mojom.Time dispatch_event_time); 67 mojo.common.mojom.Time dispatch_event_time);
55 DispatchPaymentRequestEvent(payments.mojom.PaymentAppRequest app_request) 68 DispatchPaymentRequestEvent(payments.mojom.PaymentAppRequest app_request)
56 => (blink.mojom.ServiceWorkerEventStatus status, 69 => (blink.mojom.ServiceWorkerEventStatus status,
57 mojo.common.mojom.Time dispatch_event_time); 70 mojo.common.mojom.Time dispatch_event_time);
58 DispatchExtendableMessageEvent(ExtendableMessageEvent event) 71 DispatchExtendableMessageEvent(ExtendableMessageEvent event)
59 => (blink.mojom.ServiceWorkerEventStatus status, 72 => (blink.mojom.ServiceWorkerEventStatus status,
60 mojo.common.mojom.Time dispatch_event_time); 73 mojo.common.mojom.Time dispatch_event_time);
61 }; 74 };
OLDNEW
« no previous file with comments | « content/common/service_worker/OWNERS ('k') | content/common/service_worker/service_worker_event_dispatcher.typemap » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698