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

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

Issue 2898223002: PaymentHandler: Rename PaymentAppRequest with PaymentRequestEventData. (Closed)
Patch Set: Rename Created 3 years, 6 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/mojom/payment_app.mojom"; 7 import "components/payments/mojom/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 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 DispatchPushEvent(PushEventPayload payload) 125 DispatchPushEvent(PushEventPayload payload)
126 => (blink.mojom.ServiceWorkerEventStatus status, 126 => (blink.mojom.ServiceWorkerEventStatus status,
127 mojo.common.mojom.Time dispatch_event_time); 127 mojo.common.mojom.Time dispatch_event_time);
128 // Arguments are passed to the event handler as parameters of SyncEvent. 128 // Arguments are passed to the event handler as parameters of SyncEvent.
129 // Ref: https://wicg.github.io/BackgroundSync/spec/#sync-event 129 // Ref: https://wicg.github.io/BackgroundSync/spec/#sync-event
130 DispatchSyncEvent(string tag, 130 DispatchSyncEvent(string tag,
131 blink.mojom.BackgroundSyncEventLastChance last_chance) 131 blink.mojom.BackgroundSyncEventLastChance last_chance)
132 => (blink.mojom.ServiceWorkerEventStatus status, 132 => (blink.mojom.ServiceWorkerEventStatus status,
133 mojo.common.mojom.Time dispatch_event_time); 133 mojo.common.mojom.Time dispatch_event_time);
134 DispatchPaymentRequestEvent(int32 payment_request_id, 134 DispatchPaymentRequestEvent(int32 payment_request_id,
135 payments.mojom.PaymentAppRequest app_request, 135 payments.mojom.PaymentRequestEventData request_dat a,
136 payments.mojom.PaymentAppResponseCallback response _callback) 136 payments.mojom.PaymentAppResponseCallback response _callback)
137 => (blink.mojom.ServiceWorkerEventStatus status, 137 => (blink.mojom.ServiceWorkerEventStatus status,
138 mojo.common.mojom.Time dispatch_event_time); 138 mojo.common.mojom.Time dispatch_event_time);
139 DispatchExtendableMessageEvent(ExtendableMessageEvent event) 139 DispatchExtendableMessageEvent(ExtendableMessageEvent event)
140 => (blink.mojom.ServiceWorkerEventStatus status, 140 => (blink.mojom.ServiceWorkerEventStatus status,
141 mojo.common.mojom.Time dispatch_event_time); 141 mojo.common.mojom.Time dispatch_event_time);
142 142
143 // Pings the service worker to check if it is responsive. If the callback is 143 // Pings the service worker to check if it is responsive. If the callback is
144 // not called within a certain period of time, the browser will terminate the 144 // not called within a certain period of time, the browser will terminate the
145 // worker. Unlike the other functions in this interface, Ping() does not 145 // worker. Unlike the other functions in this interface, Ping() does not
146 // dispatch an event. 146 // dispatch an event.
147 Ping() => (); 147 Ping() => ();
148 }; 148 };
149 149
150 // This interface is passed from the browser to the renderer with 150 // This interface is passed from the browser to the renderer with
151 // DispatchInstallEvent. The ordering between RegisterForeignFetchScopes and the 151 // DispatchInstallEvent. The ordering between RegisterForeignFetchScopes and the
152 // callback of DispatchInstallEvent should be preserved. 152 // callback of DispatchInstallEvent should be preserved.
153 interface ServiceWorkerInstallEventMethods { 153 interface ServiceWorkerInstallEventMethods {
154 RegisterForeignFetchScopes(array<url.mojom.Url> sub_scopes, 154 RegisterForeignFetchScopes(array<url.mojom.Url> sub_scopes,
155 array<url.mojom.Origin> origins); 155 array<url.mojom.Origin> origins);
156 }; 156 };
OLDNEW
« no previous file with comments | « content/browser/service_worker/embedded_worker_test_helper.cc ('k') | content/public/browser/payment_app_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698