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

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

Issue 2925063003: [Payments] Implement payment instrument icons (Closed)
Patch Set: fix comment lines 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/android/payments/service_worker_payment_app_bridge.cc ('k') | content/browser/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/payments/mojom/payment_app.mojom
diff --git a/components/payments/mojom/payment_app.mojom b/components/payments/mojom/payment_app.mojom
index f0bd4dd975e8eff45872a1b7ba57cb1cbdae10c8..6cb1980bfc6b0c03064351ba74c7b8fc12d98af3 100644
--- a/components/payments/mojom/payment_app.mojom
+++ b/components/payments/mojom/payment_app.mojom
@@ -14,14 +14,26 @@ enum PaymentHandlerStatus {
NOT_FOUND,
NO_ACTIVE_WORKER,
STORAGE_OPERATION_FAILED,
+ FETCH_INSTRUMENT_ICON_FAILED,
};
+// This struct is provided to hold an image object from render side
+// (ImageObject.idl).
+struct ImageObject {
+ url.mojom.Url src;
+};
+
+// This struct is provided to hold a payment instrument from render
+// side (PaymentInstrument.idl).
struct PaymentInstrument {
string name;
+ array<ImageObject> icons;
array<string> enabled_methods;
string stringified_capabilities;
};
+// This interface provides implementation of PaymentInstruments.idl
+// in render side.
interface PaymentManager {
Init(string service_worker_scope);
DeletePaymentInstrument(string instrument_key)
@@ -38,6 +50,8 @@ interface PaymentManager {
=> (PaymentHandlerStatus status);
};
+// This struct is provided to send payment request data to render side
+// (PaymentRequestEvent.idl).
struct PaymentRequestEventData {
url.mojom.Url top_level_origin;
url.mojom.Url payment_request_origin;
@@ -48,6 +62,8 @@ struct PaymentRequestEventData {
string instrument_key;
};
+// This struct is provided to receive payment app response from render
+// side (PaymentAppResponse.idl).
struct PaymentAppResponse {
string method_name;
string stringified_details;
« no previous file with comments | « chrome/browser/android/payments/service_worker_payment_app_bridge.cc ('k') | content/browser/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698