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

Side by Side Diff: components/payments/payment_app.mojom

Issue 2713033004: Layered component for web payments (Closed)
Patch Set: Rebase Created 3 years, 9 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 module payments.mojom;
6
7 import "components/payments/payment_request.mojom";
8 import "url/mojo/url.mojom";
9
10 enum PaymentAppManifestError {
11 NONE,
12 NOT_IMPLEMENTED,
13 NO_ACTIVE_WORKER,
14 MANIFEST_STORAGE_OPERATION_FAILED,
15 };
16
17 struct PaymentAppOption {
18 string name;
19 string? icon;
20 string id;
21 array<string> enabled_methods;
22 };
23
24 struct PaymentAppManifest {
25 string name;
26 string? icon;
27 array<PaymentAppOption> options;
28 };
29
30 interface PaymentAppManager {
31 Init(string service_worker_scope);
32 SetManifest(PaymentAppManifest payment_app_manifest)
33 => (PaymentAppManifestError error);
34 GetManifest()
35 => (PaymentAppManifest payment_app_manifest, PaymentAppManifestError error );
36 };
37
38 struct PaymentAppRequest {
39 url.mojom.Url origin;
40 array<PaymentMethodData> methodData;
41 PaymentItem total;
42 array<PaymentDetailsModifier> modifiers;
43 string optionId;
44 };
OLDNEW
« no previous file with comments | « components/payments/currency_formatter_unittest.cc ('k') | components/payments/payment_details_validation.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698