| 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 import "components/payments/mojom/payment_request.mojom"; | 7 import "components/payments/mojom/payment_request.mojom"; |
| 8 import "mojo/common/time.mojom"; | 8 import "mojo/common/time.mojom"; |
| 9 import "url/mojo/url.mojom"; | 9 import "url/mojo/url.mojom"; |
| 10 | 10 |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 | 30 |
| 31 enum PaymentHandlerStatus { | 31 enum PaymentHandlerStatus { |
| 32 SUCCESS, | 32 SUCCESS, |
| 33 NOT_IMPLEMENTED, | 33 NOT_IMPLEMENTED, |
| 34 NOT_FOUND, | 34 NOT_FOUND, |
| 35 NO_ACTIVE_WORKER, | 35 NO_ACTIVE_WORKER, |
| 36 STORAGE_OPERATION_FAILED, | 36 STORAGE_OPERATION_FAILED, |
| 37 }; | 37 }; |
| 38 | 38 |
| 39 struct PaymentInstrument { | 39 struct PaymentInstrument { |
| 40 int64 registration_id; |
| 41 string instrument_key; |
| 42 url.mojom.Url origin; |
| 40 string name; | 43 string name; |
| 41 array<string> enabled_methods; | 44 array<string> enabled_methods; |
| 42 string stringified_capabilities; | 45 string stringified_capabilities; |
| 43 }; | 46 }; |
| 44 | 47 |
| 45 interface PaymentManager { | 48 interface PaymentManager { |
| 46 Init(string service_worker_scope); | 49 Init(string service_worker_scope); |
| 47 SetManifest(PaymentAppManifest payment_app_manifest) | 50 SetManifest(PaymentAppManifest payment_app_manifest) |
| 48 => (PaymentAppManifestError error); | 51 => (PaymentAppManifestError error); |
| 49 GetManifest() | 52 GetManifest() |
| (...skipping 24 matching lines...) Expand all Loading... |
| 74 string method_name; | 77 string method_name; |
| 75 string stringified_details; | 78 string stringified_details; |
| 76 }; | 79 }; |
| 77 | 80 |
| 78 // This interface is provided to pass a payment app response from payment | 81 // This interface is provided to pass a payment app response from payment |
| 79 // request event in renderer side to browser side by calling respondWith(). | 82 // request event in renderer side to browser side by calling respondWith(). |
| 80 interface PaymentAppResponseCallback { | 83 interface PaymentAppResponseCallback { |
| 81 OnPaymentAppResponse(PaymentAppResponse response, | 84 OnPaymentAppResponse(PaymentAppResponse response, |
| 82 mojo.common.mojom.Time dispatch_event_time); | 85 mojo.common.mojom.Time dispatch_event_time); |
| 83 }; | 86 }; |
| OLD | NEW |