| 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 package org.chromium.chrome.browser.payments; | 5 package org.chromium.chrome.browser.payments; |
| 6 | 6 |
| 7 import org.chromium.content_public.browser.WebContents; | 7 import org.chromium.content_public.browser.WebContents; |
| 8 import org.chromium.payments.mojom.PaymentDetailsModifier; | 8 import org.chromium.payments.mojom.PaymentDetailsModifier; |
| 9 import org.chromium.payments.mojom.PaymentItem; | 9 import org.chromium.payments.mojom.PaymentItem; |
| 10 import org.chromium.payments.mojom.PaymentMethodData; | 10 import org.chromium.payments.mojom.PaymentMethodData; |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 mMethodNames = new HashSet<String>(option.enabledMethods); | 50 mMethodNames = new HashSet<String>(option.enabledMethods); |
| 51 } | 51 } |
| 52 | 52 |
| 53 @Override | 53 @Override |
| 54 public Set<String> getInstrumentMethodNames() { | 54 public Set<String> getInstrumentMethodNames() { |
| 55 return Collections.unmodifiableSet(mMethodNames); | 55 return Collections.unmodifiableSet(mMethodNames); |
| 56 } | 56 } |
| 57 | 57 |
| 58 @Override | 58 @Override |
| 59 public void invokePaymentApp(String merchantName, String origin, | 59 public void invokePaymentApp(String merchantName, String origin, |
| 60 Map<String, PaymentMethodData> methodData, PaymentItem total, | 60 byte[][] unusedCertificateChain, Map<String, PaymentMethodData> meth
odData, |
| 61 List<PaymentItem> displayItems, Map<String, PaymentDetailsModifier>
modifiers, | 61 PaymentItem total, List<PaymentItem> displayItems, |
| 62 InstrumentDetailsCallback callback) { | 62 Map<String, PaymentDetailsModifier> modifiers, InstrumentDetailsCall
back callback) { |
| 63 ServiceWorkerPaymentAppBridge.invokePaymentApp(mWebContents, mAppRegistr
ationId, mOption.id, | 63 ServiceWorkerPaymentAppBridge.invokePaymentApp(mWebContents, mAppRegistr
ationId, mOption.id, |
| 64 origin, new HashSet<>(methodData.values()), total, displayItems, | 64 origin, new HashSet<>(methodData.values()), total, displayItems, |
| 65 new HashSet<>(modifiers.values())); | 65 new HashSet<>(modifiers.values())); |
| 66 } | 66 } |
| 67 | 67 |
| 68 @Override | 68 @Override |
| 69 public void dismissInstrument() {} | 69 public void dismissInstrument() {} |
| 70 } | 70 } |
| OLD | NEW |