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

Unified Diff: components/payments/payment_app.mojom

Issue 2476343002: PaymentApp: Initial implementation for PaymentAppManager.setManifest(). (Closed)
Patch Set: fix lint error Created 4 years, 1 month 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/BUILD.gn ('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/payment_app.mojom
diff --git a/components/payments/payment_app.mojom b/components/payments/payment_app.mojom
new file mode 100644
index 0000000000000000000000000000000000000000..ca8a97a4d1af999266d87349da47f4fe1e947c6f
--- /dev/null
+++ b/components/payments/payment_app.mojom
@@ -0,0 +1,28 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+module payments.mojom;
+
+enum PaymentAppManifestError {
+ NONE,
+ NOT_IMPLEMENTED,
+};
+
+struct PaymentAppOption {
+ string label;
+ string? icon;
+ string id;
+ array<string> enabled_methods;
+};
+
+struct PaymentAppManifest {
+ string label;
+ string? icon;
+ array<PaymentAppOption> options;
+};
+
+interface PaymentAppManager {
+ SetManifest(string service_worker_scope, PaymentAppManifest payment_app_manifest)
+ => (PaymentAppManifestError error);
+};
« no previous file with comments | « components/payments/BUILD.gn ('k') | content/browser/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698