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

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

Issue 2790013002: PaymentHandler: Implement set/get methods in PaymentInstruments (blink) (Closed)
Patch Set: ss 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 side-by-side diff with in-line comments
Download patch
Index: components/payments/content/payment_app.mojom
diff --git a/components/payments/content/payment_app.mojom b/components/payments/content/payment_app.mojom
index a980ddcf8a8b14ba0cfdd6c28bcb1e9a9492669f..f24f1063f202efbfe3fed91db9ae16a123d02b84 100644
--- a/components/payments/content/payment_app.mojom
+++ b/components/payments/content/payment_app.mojom
@@ -28,12 +28,31 @@ struct PaymentAppManifest {
array<PaymentAppOption> options;
};
+enum PaymentHandlerStatus {
+ SUCCESS,
+ NOT_IMPLEMENTED,
+ NOT_FOUND,
+ NO_ACTIVE_WORKER,
+ STORAGE_OPERATION_FAILED,
+};
+
+struct PaymentInstrument {
+ string name;
+ array<string> enabled_methods;
+ string stringified_capabilities;
+};
+
interface PaymentManager {
Init(string service_worker_scope);
SetManifest(PaymentAppManifest payment_app_manifest)
=> (PaymentAppManifestError error);
GetManifest()
=> (PaymentAppManifest payment_app_manifest, PaymentAppManifestError error);
+
+ SetPaymentInstrument(string instrumentKey, PaymentInstrument instrument)
+ => (PaymentHandlerStatus status);
+ GetPaymentInstrument(string instrumentKey)
+ => (PaymentInstrument instrument, PaymentHandlerStatus status);
};
struct PaymentAppRequest {

Powered by Google App Engine
This is Rietveld 408576698