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

Unified Diff: components/payments/content/payment_app.mojom

Issue 2718013004: PaymentApp: Implement respondWith() in PaymentRequestEvent. (content side) (Closed)
Patch Set: rebase 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/payments/content/BUILD.gn ('k') | content/browser/payments/payment_app_browsertest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/payments/content/payment_app.mojom
diff --git a/components/payments/content/payment_app.mojom b/components/payments/content/payment_app.mojom
index 0d9f7c655ad95ce00108c6592d6e4bf1858121e4..d86c037da0b1028f0cf433335f5e9c4dfead94e9 100644
--- a/components/payments/content/payment_app.mojom
+++ b/components/payments/content/payment_app.mojom
@@ -5,6 +5,7 @@
module payments.mojom;
import "components/payments/content/payment_request.mojom";
+import "mojo/common/time.mojom";
import "url/mojo/url.mojom";
enum PaymentAppManifestError {
@@ -42,3 +43,15 @@ struct PaymentAppRequest {
array<PaymentDetailsModifier> modifiers;
string optionId;
};
+
+struct PaymentAppResponse {
+ string method_name;
+ string stringified_details;
+};
+
+// This interface is provided to pass a payment app response from payment
+// request event in renderer side to browser side by calling respondWith().
+interface PaymentAppResponseCallback {
+ OnPaymentAppResponse(PaymentAppResponse response,
+ mojo.common.mojom.Time dispatch_event_time);
+};
« no previous file with comments | « components/payments/content/BUILD.gn ('k') | content/browser/payments/payment_app_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698