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

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

Issue 2724243003: Revert of [ServiceWorker] Mojofy ActivateEvent of Service Worker (Closed)
Patch Set: Created 3 years, 9 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);
45 // |fetch_event_id| is used internally when sending the response back to the 42 // |fetch_event_id| is used internally when sending the response back to the
46 // browser process. 43 // browser process.
47 DispatchFetchEvent(int32 fetch_event_id, ServiceWorkerFetchRequest request, 44 DispatchFetchEvent(int32 fetch_event_id, ServiceWorkerFetchRequest request,
48 FetchEventPreloadHandle? preload_handle) 45 FetchEventPreloadHandle? preload_handle)
49 => (blink.mojom.ServiceWorkerEventStatus status, 46 => (blink.mojom.ServiceWorkerEventStatus status,
50 mojo.common.mojom.Time dispatch_event_time); 47 mojo.common.mojom.Time dispatch_event_time);
51 DispatchNotificationClickEvent(string notification_id, 48 DispatchNotificationClickEvent(string notification_id,
52 PlatformNotificationData notification_data, 49 PlatformNotificationData notification_data,
53 int32 action_index, 50 int32 action_index,
54 mojo.common.mojom.String16? reply) 51 mojo.common.mojom.String16? reply)
(...skipping 12 matching lines...) Expand all
67 blink.mojom.BackgroundSyncEventLastChance last_chance) 64 blink.mojom.BackgroundSyncEventLastChance last_chance)
68 => (blink.mojom.ServiceWorkerEventStatus status, 65 => (blink.mojom.ServiceWorkerEventStatus status,
69 mojo.common.mojom.Time dispatch_event_time); 66 mojo.common.mojom.Time dispatch_event_time);
70 DispatchPaymentRequestEvent(payments.mojom.PaymentAppRequest app_request) 67 DispatchPaymentRequestEvent(payments.mojom.PaymentAppRequest app_request)
71 => (blink.mojom.ServiceWorkerEventStatus status, 68 => (blink.mojom.ServiceWorkerEventStatus status,
72 mojo.common.mojom.Time dispatch_event_time); 69 mojo.common.mojom.Time dispatch_event_time);
73 DispatchExtendableMessageEvent(ExtendableMessageEvent event) 70 DispatchExtendableMessageEvent(ExtendableMessageEvent event)
74 => (blink.mojom.ServiceWorkerEventStatus status, 71 => (blink.mojom.ServiceWorkerEventStatus status,
75 mojo.common.mojom.Time dispatch_event_time); 72 mojo.common.mojom.Time dispatch_event_time);
76 }; 73 };
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