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

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

Issue 2718013004: PaymentApp: Implement respondWith() in PaymentRequestEvent. (content side) (Closed)
Patch Set: rebase Created 3 years, 8 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/content/payment_app.mojom"; 7 import "components/payments/content/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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 mojo.common.mojom.Time dispatch_event_time); 88 mojo.common.mojom.Time dispatch_event_time);
89 DispatchPushEvent(PushEventPayload payload) 89 DispatchPushEvent(PushEventPayload payload)
90 => (blink.mojom.ServiceWorkerEventStatus status, 90 => (blink.mojom.ServiceWorkerEventStatus status,
91 mojo.common.mojom.Time dispatch_event_time); 91 mojo.common.mojom.Time dispatch_event_time);
92 // Arguments are passed to the event handler as parameters of SyncEvent. 92 // Arguments are passed to the event handler as parameters of SyncEvent.
93 // Ref: https://wicg.github.io/BackgroundSync/spec/#sync-event 93 // Ref: https://wicg.github.io/BackgroundSync/spec/#sync-event
94 DispatchSyncEvent(string tag, 94 DispatchSyncEvent(string tag,
95 blink.mojom.BackgroundSyncEventLastChance last_chance) 95 blink.mojom.BackgroundSyncEventLastChance last_chance)
96 => (blink.mojom.ServiceWorkerEventStatus status, 96 => (blink.mojom.ServiceWorkerEventStatus status,
97 mojo.common.mojom.Time dispatch_event_time); 97 mojo.common.mojom.Time dispatch_event_time);
98 DispatchPaymentRequestEvent(payments.mojom.PaymentAppRequest app_request) 98 DispatchPaymentRequestEvent(int32 payment_request_id,
99 payments.mojom.PaymentAppRequest app_request,
100 payments.mojom.PaymentAppResponseCallback response _callback)
99 => (blink.mojom.ServiceWorkerEventStatus status, 101 => (blink.mojom.ServiceWorkerEventStatus status,
100 mojo.common.mojom.Time dispatch_event_time); 102 mojo.common.mojom.Time dispatch_event_time);
101 DispatchExtendableMessageEvent(ExtendableMessageEvent event) 103 DispatchExtendableMessageEvent(ExtendableMessageEvent event)
102 => (blink.mojom.ServiceWorkerEventStatus status, 104 => (blink.mojom.ServiceWorkerEventStatus status,
103 mojo.common.mojom.Time dispatch_event_time); 105 mojo.common.mojom.Time dispatch_event_time);
104 106
105 // Pings the service worker to check if it is responsive. If the callback is 107 // Pings the service worker to check if it is responsive. If the callback is
106 // not called within a certain period of time, the browser will terminate the 108 // not called within a certain period of time, the browser will terminate the
107 // worker. Unlike the other functions in this interface, Ping() does not 109 // worker. Unlike the other functions in this interface, Ping() does not
108 // dispatch an event. 110 // dispatch an event.
109 Ping() => (); 111 Ping() => ();
110 }; 112 };
OLDNEW
« no previous file with comments | « content/browser/service_worker/embedded_worker_test_helper.cc ('k') | content/public/browser/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698