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

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

Issue 2739033004: Send origin of the iframe browsing context (Closed)
Patch Set: Really fix serviceworker part Created 3 years, 9 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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 merchantName The name of the merchant. 76 * @param merchantName The name of the merchant.
77 * @param origin The origin of this merchant. 77 * @param origin The origin of this merchant.
78 * @param iframeOrigin The origin of the iframe browsing context that in voked
79 * PaymentRequest.
78 * @param certificateChain The site certificate chain of the merchant. 80 * @param certificateChain The site certificate chain of the merchant.
79 * @param methodDataMap The payment-method specific data for all applicab le payment methods, 81 * @param methodDataMap The payment-method specific data for all applicab le payment methods,
80 * e.g., whether the app should be invoked in test o r production, a 82 * e.g., whether the app should be invoked in test o r production, a
81 * merchant identifier, or a public key. 83 * merchant identifier, or a public key.
82 * @param total The total amount. 84 * @param total The total amount.
83 * @param displayItems The shopping cart items. 85 * @param displayItems The shopping cart items.
84 * @param modifiers The relevant payment details modifiers. 86 * @param modifiers The relevant payment details modifiers.
85 * @param callback The object that will receive the instrument detai ls. 87 * @param callback The object that will receive the instrument detai ls.
86 */ 88 */
87 public abstract void invokePaymentApp(String merchantName, String origin, 89 public abstract void invokePaymentApp(String merchantName, String origin, St ring iframeOrigin,
88 byte[][] certificateChain, Map<String, PaymentMethodData> methodData Map, 90 byte[][] certificateChain, Map<String, PaymentMethodData> methodData Map,
89 PaymentItem total, List<PaymentItem> displayItems, 91 PaymentItem total, List<PaymentItem> displayItems,
90 Map<String, PaymentDetailsModifier> modifiers, InstrumentDetailsCall back callback); 92 Map<String, PaymentDetailsModifier> modifiers, InstrumentDetailsCall back callback);
91 93
92 /** 94 /**
93 * Cleans up any resources held by the payment instrument. For example, clos es server 95 * Cleans up any resources held by the payment instrument. For example, clos es server
94 * connections. 96 * connections.
95 */ 97 */
96 public abstract void dismissInstrument(); 98 public abstract void dismissInstrument();
97 } 99 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698