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

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

Issue 2790013002: PaymentHandler: Implement set/get methods in PaymentInstruments (blink) (Closed)
Patch Set: blink 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
« no previous file with comments | « no previous file | content/browser/payments/payment_manager.h » ('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 f7eae0a4fdd2158202c5876c31694f92853ee763..5cc4e3bca4ea82398d46887aada18e412b7d4cb5 100644
--- a/components/payments/mojom/payment_app.mojom
+++ b/components/payments/mojom/payment_app.mojom
@@ -28,12 +28,30 @@ 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 {
« no previous file with comments | « no previous file | content/browser/payments/payment_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698