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

Side by Side Diff: chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentInstrument.java

Issue 2770193003: Implement request id in PaymentDetailsInit (Closed)
Patch Set: Rebase once more since mojom file moved 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 package org.chromium.chrome.browser.payments; 5 package org.chromium.chrome.browser.payments;
6 6
7 import android.graphics.drawable.Drawable; 7 import android.graphics.drawable.Drawable;
8 8
9 import org.chromium.chrome.browser.payments.ui.PaymentOption; 9 import org.chromium.chrome.browser.payments.ui.PaymentOption;
10 import org.chromium.payments.mojom.PaymentDetailsModifier; 10 import org.chromium.payments.mojom.PaymentDetailsModifier;
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 * 66 *
67 * @return The method names for this instrument. 67 * @return The method names for this instrument.
68 */ 68 */
69 public abstract Set<String> getInstrumentMethodNames(); 69 public abstract Set<String> getInstrumentMethodNames();
70 70
71 /** 71 /**
72 * Invoke the payment app to retrieve the instrument details. 72 * Invoke the payment app to retrieve the instrument details.
73 * 73 *
74 * The callback will be invoked with the resulting payment details or error. 74 * The callback will be invoked with the resulting payment details or error.
75 * 75 *
76 * @param id The unique identifier of the PaymentRequest.
76 * @param merchantName The name of the merchant. 77 * @param merchantName The name of the merchant.
77 * @param origin The origin of this merchant. 78 * @param origin The origin of this merchant.
78 * @param iframeOrigin The origin of the iframe that invoked PaymentRequ est. 79 * @param iframeOrigin The origin of the iframe that invoked PaymentRequ est.
79 * @param certificateChain The site certificate chain of the merchant. Can b e null for localhost 80 * @param certificateChain The site certificate chain of the merchant. Can b e null for localhost
80 * or local file, which are secure contexts without SSL. 81 * or local file, which are secure contexts without SSL.
81 * @param methodDataMap The payment-method specific data for all applicab le payment methods, 82 * @param methodDataMap The payment-method specific data for all applicab le payment methods,
82 * e.g., whether the app should be invoked in test o r production, a 83 * e.g., whether the app should be invoked in test o r production, a
83 * merchant identifier, or a public key. 84 * merchant identifier, or a public key.
84 * @param total The total amount. 85 * @param total The total amount.
85 * @param displayItems The shopping cart items. 86 * @param displayItems The shopping cart items.
86 * @param modifiers The relevant payment details modifiers. 87 * @param modifiers The relevant payment details modifiers.
87 * @param callback The object that will receive the instrument detai ls. 88 * @param callback The object that will receive the instrument detai ls.
88 */ 89 */
89 public abstract void invokePaymentApp(String merchantName, String origin, St ring iframeOrigin, 90 public abstract void invokePaymentApp(String id, String merchantName, String origin,
90 @Nullable byte[][] certificateChain, Map<String, PaymentMethodData> methodDataMap, 91 String iframeOrigin, @Nullable byte[][] certificateChain,
91 PaymentItem total, List<PaymentItem> displayItems, 92 Map<String, PaymentMethodData> methodDataMap, PaymentItem total,
92 Map<String, PaymentDetailsModifier> modifiers, InstrumentDetailsCall back callback); 93 List<PaymentItem> displayItems, Map<String, PaymentDetailsModifier> modifiers,
94 InstrumentDetailsCallback callback);
93 95
94 /** 96 /**
95 * Cleans up any resources held by the payment instrument. For example, clos es server 97 * Cleans up any resources held by the payment instrument. For example, clos es server
96 * connections. 98 * connections.
97 */ 99 */
98 public abstract void dismissInstrument(); 100 public abstract void dismissInstrument();
99 } 101 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698