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

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

Issue 2678733002: [ServiceWorker] Mojofy ActivateEvent of Service Worker (Closed)
Patch Set: Address comments #25, #26, #33 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";
(...skipping 22 matching lines...) Expand all
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<int32> message_ports;
36 array<int32> new_routing_ids; 36 array<int32> new_routing_ids;
37 ExtendableMessageEventSource source; 37 ExtendableMessageEventSource source;
38 }; 38 };
39 39
40 // Renderer-side interface bound to ServiceWorkerContextClient for dispatching 40 // Renderer-side interface bound to ServiceWorkerContextClient for dispatching
41 // events. 41 // events.
42 interface ServiceWorkerEventDispatcher { 42 interface ServiceWorkerEventDispatcher {
43 DispatchActivateEvent()
44 => (blink.mojom.ServiceWorkerEventStatus status,
45 mojo.common.mojom.Time dispatch_event_time);
43 // |fetch_event_id| is used internally when sending the response back to the 46 // |fetch_event_id| is used internally when sending the response back to the
44 // browser process. 47 // browser process.
45 DispatchFetchEvent(int32 fetch_event_id, ServiceWorkerFetchRequest request, 48 DispatchFetchEvent(int32 fetch_event_id, ServiceWorkerFetchRequest request,
46 FetchEventPreloadHandle? preload_handle) 49 FetchEventPreloadHandle? preload_handle)
47 => (blink.mojom.ServiceWorkerEventStatus status, 50 => (blink.mojom.ServiceWorkerEventStatus status,
48 mojo.common.mojom.Time dispatch_event_time); 51 mojo.common.mojom.Time dispatch_event_time);
49 DispatchNotificationClickEvent(string notification_id, 52 DispatchNotificationClickEvent(string notification_id,
50 PlatformNotificationData notification_data, 53 PlatformNotificationData notification_data,
51 int32 action_index, 54 int32 action_index,
52 mojo.common.mojom.String16? reply) 55 mojo.common.mojom.String16? reply)
(...skipping 12 matching lines...) Expand all
65 blink.mojom.BackgroundSyncEventLastChance last_chance) 68 blink.mojom.BackgroundSyncEventLastChance last_chance)
66 => (blink.mojom.ServiceWorkerEventStatus status, 69 => (blink.mojom.ServiceWorkerEventStatus status,
67 mojo.common.mojom.Time dispatch_event_time); 70 mojo.common.mojom.Time dispatch_event_time);
68 DispatchPaymentRequestEvent(payments.mojom.PaymentAppRequest app_request) 71 DispatchPaymentRequestEvent(payments.mojom.PaymentAppRequest app_request)
69 => (blink.mojom.ServiceWorkerEventStatus status, 72 => (blink.mojom.ServiceWorkerEventStatus status,
70 mojo.common.mojom.Time dispatch_event_time); 73 mojo.common.mojom.Time dispatch_event_time);
71 DispatchExtendableMessageEvent(ExtendableMessageEvent event) 74 DispatchExtendableMessageEvent(ExtendableMessageEvent event)
72 => (blink.mojom.ServiceWorkerEventStatus status, 75 => (blink.mojom.ServiceWorkerEventStatus status,
73 mojo.common.mojom.Time dispatch_event_time); 76 mojo.common.mojom.Time dispatch_event_time);
74 }; 77 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698