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

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

Issue 2678733002: [ServiceWorker] Mojofy ActivateEvent of Service Worker (Closed)
Patch Set: 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 19 matching lines...) Expand all
30 mojo.common.mojom.String16 message; 30 mojo.common.mojom.String16 message;
31 url.mojom.Origin source_origin; 31 url.mojom.Origin source_origin;
32 array<int32> message_ports; 32 array<int32> message_ports;
33 array<int32> new_routing_ids; 33 array<int32> new_routing_ids;
34 ExtendableMessageEventSource source; 34 ExtendableMessageEventSource source;
35 }; 35 };
36 36
37 // Renderer-side interface bound to ServiceWorkerContextClient for dispatching 37 // Renderer-side interface bound to ServiceWorkerContextClient for dispatching
38 // events. 38 // events.
39 interface ServiceWorkerEventDispatcher { 39 interface ServiceWorkerEventDispatcher {
40 DispatchActivateEvent()
41 => (blink.mojom.ServiceWorkerEventStatus status,
42 mojo.common.mojom.Time dispatch_event_time);
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);
46 DispatchPushEvent(PushEventPayload payload) 49 DispatchPushEvent(PushEventPayload payload)
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 // Arguments are passed to the event handler as parameters of SyncEvent. 52 // Arguments are passed to the event handler as parameters of SyncEvent.
50 // Ref: https://wicg.github.io/BackgroundSync/spec/#sync-event 53 // Ref: https://wicg.github.io/BackgroundSync/spec/#sync-event
51 DispatchSyncEvent(string tag, 54 DispatchSyncEvent(string tag,
52 blink.mojom.BackgroundSyncEventLastChance last_chance) 55 blink.mojom.BackgroundSyncEventLastChance last_chance)
53 => (blink.mojom.ServiceWorkerEventStatus status, 56 => (blink.mojom.ServiceWorkerEventStatus status,
54 mojo.common.mojom.Time dispatch_event_time); 57 mojo.common.mojom.Time dispatch_event_time);
55 DispatchPaymentRequestEvent(payments.mojom.PaymentAppRequest app_request) 58 DispatchPaymentRequestEvent(payments.mojom.PaymentAppRequest app_request)
56 => (blink.mojom.ServiceWorkerEventStatus status, 59 => (blink.mojom.ServiceWorkerEventStatus status,
57 mojo.common.mojom.Time dispatch_event_time); 60 mojo.common.mojom.Time dispatch_event_time);
58 DispatchExtendableMessageEvent(ExtendableMessageEvent event) 61 DispatchExtendableMessageEvent(ExtendableMessageEvent event)
59 => (blink.mojom.ServiceWorkerEventStatus status, 62 => (blink.mojom.ServiceWorkerEventStatus status,
60 mojo.common.mojom.Time dispatch_event_time); 63 mojo.common.mojom.Time dispatch_event_time);
61 }; 64 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698