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

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

Issue 2925063003: [Payments] Implement payment instrument icons (Closed)
Patch Set: rebase 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
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..e5d101dc7d12923298428b17c2e04391a7bd06cf 100644
--- a/components/payments/mojom/payment_app.mojom
+++ b/components/payments/mojom/payment_app.mojom
@@ -14,10 +14,18 @@ enum PaymentHandlerStatus {
NOT_FOUND,
NO_ACTIVE_WORKER,
STORAGE_OPERATION_FAILED,
+ FETCH_INSTRUMENT_ICON_FAILED,
+};
+
+struct ImageObject {
+ string src;
please use gerrit instead 2017/06/08 21:34:10 use mojom.url.GURL instead.
gogerald1 2017/06/09 14:23:24 Why using mojom.url.GURL? PaymentInstruments has g
please use gerrit instead 2017/06/09 14:52:53 A strict IPC interface is better for security. (Th
gogerald1 2017/06/09 18:50:55 as talked offline
+ string sizes;
please use gerrit instead 2017/06/08 21:34:10 This is never used. Discard, please. If you need i
gogerald1 2017/06/09 14:23:24 This is used by get interface. We could decode it
please use gerrit instead 2017/06/09 14:52:53 All additional parameters increase the attack surf
gogerald1 2017/06/09 18:50:56 Done.
+ string type;
please use gerrit instead 2017/06/08 21:34:10 This is never used. Discard, please. If you need i
gogerald1 2017/06/09 14:23:23 ditto
gogerald1 2017/06/09 18:50:55 Done.
};
struct PaymentInstrument {
string name;
+ array<ImageObject> icons;
array<string> enabled_methods;
string stringified_capabilities;
};

Powered by Google App Engine
This is Rietveld 408576698