OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 module payments.mojom; | 5 module payments.mojom; |
6 | 6 |
7 enum PaymentAppManifestError { | 7 enum PaymentAppManifestError { |
8 NONE, | 8 NONE, |
9 NOT_IMPLEMENTED, | 9 NOT_IMPLEMENTED, |
| 10 NO_ACTIVE_WORKER, |
| 11 STORE_MANIFEST_FAILED, |
10 }; | 12 }; |
11 | 13 |
12 struct PaymentAppOption { | 14 struct PaymentAppOption { |
13 string label; | 15 string label; |
14 string? icon; | 16 string? icon; |
15 string id; | 17 string id; |
16 array<string> enabled_methods; | 18 array<string> enabled_methods; |
17 }; | 19 }; |
18 | 20 |
19 struct PaymentAppManifest { | 21 struct PaymentAppManifest { |
20 string label; | 22 string label; |
21 string? icon; | 23 string? icon; |
22 array<PaymentAppOption> options; | 24 array<PaymentAppOption> options; |
23 }; | 25 }; |
24 | 26 |
25 interface PaymentAppManager { | 27 interface PaymentAppManager { |
26 SetManifest(string service_worker_scope, PaymentAppManifest payment_app_manife
st) | 28 SetManifest(string service_worker_scope, PaymentAppManifest payment_app_manife
st) |
27 => (PaymentAppManifestError error); | 29 => (PaymentAppManifestError error); |
28 }; | 30 }; |
OLD | NEW |