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

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

Issue 2678733002: [ServiceWorker] Mojofy ActivateEvent of Service Worker (Closed)
Patch Set: Just rebase 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 21 matching lines...) Expand all
32 struct ExtendableMessageEvent { 32 struct ExtendableMessageEvent {
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<handle<message_pipe>> message_ports; 35 array<handle<message_pipe>> message_ports;
36 ExtendableMessageEventSource source; 36 ExtendableMessageEventSource source;
37 }; 37 };
38 38
39 // Renderer-side interface bound to ServiceWorkerContextClient for dispatching 39 // Renderer-side interface bound to ServiceWorkerContextClient for dispatching
40 // events. 40 // events.
41 interface ServiceWorkerEventDispatcher { 41 interface ServiceWorkerEventDispatcher {
42 DispatchActivateEvent()
43 => (blink.mojom.ServiceWorkerEventStatus status,
44 mojo.common.mojom.Time dispatch_event_time);
42 // |fetch_event_id| is used internally when sending the response back to the 45 // |fetch_event_id| is used internally when sending the response back to the
43 // browser process. 46 // browser process.
44 DispatchFetchEvent(int32 fetch_event_id, ServiceWorkerFetchRequest request, 47 DispatchFetchEvent(int32 fetch_event_id, ServiceWorkerFetchRequest request,
45 FetchEventPreloadHandle? preload_handle) 48 FetchEventPreloadHandle? preload_handle)
46 => (blink.mojom.ServiceWorkerEventStatus status, 49 => (blink.mojom.ServiceWorkerEventStatus status,
47 mojo.common.mojom.Time dispatch_event_time); 50 mojo.common.mojom.Time dispatch_event_time);
48 DispatchNotificationClickEvent(string notification_id, 51 DispatchNotificationClickEvent(string notification_id,
49 PlatformNotificationData notification_data, 52 PlatformNotificationData notification_data,
50 int32 action_index, 53 int32 action_index,
51 mojo.common.mojom.String16? reply) 54 mojo.common.mojom.String16? reply)
(...skipping 12 matching lines...) Expand all
64 blink.mojom.BackgroundSyncEventLastChance last_chance) 67 blink.mojom.BackgroundSyncEventLastChance last_chance)
65 => (blink.mojom.ServiceWorkerEventStatus status, 68 => (blink.mojom.ServiceWorkerEventStatus status,
66 mojo.common.mojom.Time dispatch_event_time); 69 mojo.common.mojom.Time dispatch_event_time);
67 DispatchPaymentRequestEvent(payments.mojom.PaymentAppRequest app_request) 70 DispatchPaymentRequestEvent(payments.mojom.PaymentAppRequest app_request)
68 => (blink.mojom.ServiceWorkerEventStatus status, 71 => (blink.mojom.ServiceWorkerEventStatus status,
69 mojo.common.mojom.Time dispatch_event_time); 72 mojo.common.mojom.Time dispatch_event_time);
70 DispatchExtendableMessageEvent(ExtendableMessageEvent event) 73 DispatchExtendableMessageEvent(ExtendableMessageEvent event)
71 => (blink.mojom.ServiceWorkerEventStatus status, 74 => (blink.mojom.ServiceWorkerEventStatus status,
72 mojo.common.mojom.Time dispatch_event_time); 75 mojo.common.mojom.Time dispatch_event_time);
73 }; 76 };
OLDNEW
« no previous file with comments | « content/browser/service_worker/service_worker_registration.cc ('k') | content/common/service_worker/service_worker_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698