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

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

Issue 2844463002: PaymentHandler: Implement PaymentInstruments.delete(). (Closed)
Patch Set: PaymentHandler: Implement PaymentInstruments.delete(). 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 unified diff | Download patch
« no previous file with comments | « no previous file | content/browser/payments/payment_app_database.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 30 matching lines...) Expand all
41 array<string> enabled_methods; 41 array<string> enabled_methods;
42 string stringified_capabilities; 42 string stringified_capabilities;
43 }; 43 };
44 44
45 interface PaymentManager { 45 interface PaymentManager {
46 Init(string service_worker_scope); 46 Init(string service_worker_scope);
47 SetManifest(PaymentAppManifest payment_app_manifest) 47 SetManifest(PaymentAppManifest payment_app_manifest)
48 => (PaymentAppManifestError error); 48 => (PaymentAppManifestError error);
49 GetManifest() 49 GetManifest()
50 => (PaymentAppManifest payment_app_manifest, PaymentAppManifestError error ); 50 => (PaymentAppManifest payment_app_manifest, PaymentAppManifestError error );
51 SetPaymentInstrument(string instrumentKey, PaymentInstrument instrument) 51 DeletePaymentInstrument(string instrument_key)
52 => (PaymentHandlerStatus status); 52 => (PaymentHandlerStatus status);
53 GetPaymentInstrument(string instrumentKey) 53 SetPaymentInstrument(string instrument_key, PaymentInstrument instrument)
54 => (PaymentHandlerStatus status);
55 GetPaymentInstrument(string instrument_key)
54 => (PaymentInstrument instrument, PaymentHandlerStatus status); 56 => (PaymentInstrument instrument, PaymentHandlerStatus status);
55 }; 57 };
56 58
57 struct PaymentAppRequest { 59 struct PaymentAppRequest {
58 url.mojom.Url origin; 60 url.mojom.Url origin;
59 array<PaymentMethodData> methodData; 61 array<PaymentMethodData> methodData;
60 PaymentItem total; 62 PaymentItem total;
61 array<PaymentDetailsModifier> modifiers; 63 array<PaymentDetailsModifier> modifiers;
62 string optionId; 64 string optionId;
63 }; 65 };
64 66
65 struct PaymentAppResponse { 67 struct PaymentAppResponse {
66 string method_name; 68 string method_name;
67 string stringified_details; 69 string stringified_details;
68 }; 70 };
69 71
70 // This interface is provided to pass a payment app response from payment 72 // This interface is provided to pass a payment app response from payment
71 // request event in renderer side to browser side by calling respondWith(). 73 // request event in renderer side to browser side by calling respondWith().
72 interface PaymentAppResponseCallback { 74 interface PaymentAppResponseCallback {
73 OnPaymentAppResponse(PaymentAppResponse response, 75 OnPaymentAppResponse(PaymentAppResponse response,
74 mojo.common.mojom.Time dispatch_event_time); 76 mojo.common.mojom.Time dispatch_event_time);
75 }; 77 };
OLDNEW
« no previous file with comments | « no previous file | content/browser/payments/payment_app_database.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698