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

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

Issue 2885793003: ** DO NOT COMMIT** Only for test
Patch Set: Replace yaho Created 3 years, 7 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
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 21 matching lines...) Expand all
32 => (array<string> keys, PaymentHandlerStatus status); 32 => (array<string> keys, PaymentHandlerStatus status);
33 HasPaymentInstrument(string instrument_key) 33 HasPaymentInstrument(string instrument_key)
34 => (PaymentHandlerStatus status); 34 => (PaymentHandlerStatus status);
35 SetPaymentInstrument(string instrument_key, PaymentInstrument instrument) 35 SetPaymentInstrument(string instrument_key, PaymentInstrument instrument)
36 => (PaymentHandlerStatus status); 36 => (PaymentHandlerStatus status);
37 ClearPaymentInstruments() 37 ClearPaymentInstruments()
38 => (PaymentHandlerStatus status); 38 => (PaymentHandlerStatus status);
39 }; 39 };
40 40
41 struct PaymentAppRequest { 41 struct PaymentAppRequest {
42 url.mojom.Url origin; 42 url.mojom.Url top_level_origin;
43 url.mojom.Url payment_request_origin;
44 string payment_request_id;
43 array<PaymentMethodData> method_data; 45 array<PaymentMethodData> method_data;
44 PaymentItem total; 46 PaymentItem total;
45 array<PaymentDetailsModifier> modifiers; 47 array<PaymentDetailsModifier> modifiers;
46 string option_id; 48 string instrument_key;
47 }; 49 };
48 50
49 struct PaymentAppResponse { 51 struct PaymentAppResponse {
50 string method_name; 52 string method_name;
51 string stringified_details; 53 string stringified_details;
52 }; 54 };
53 55
54 // This interface is provided to pass a payment app response from payment 56 // This interface is provided to pass a payment app response from payment
55 // request event in renderer side to browser side by calling respondWith(). 57 // request event in renderer side to browser side by calling respondWith().
56 interface PaymentAppResponseCallback { 58 interface PaymentAppResponseCallback {
57 OnPaymentAppResponse(PaymentAppResponse response, 59 OnPaymentAppResponse(PaymentAppResponse response,
58 mojo.common.mojom.Time dispatch_event_time); 60 mojo.common.mojom.Time dispatch_event_time);
59 }; 61 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698