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

Side by Side Diff: chrome/android/java/src/org/chromium/chrome/browser/payments/ServiceWorkerPaymentInstrument.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 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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 49
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, String ifra meOrigin,
60 byte[][] unusedCertificateChain, Map<String, PaymentMethodData> meth odData, 60 byte[][] unusedCertificateChain, Map<String, PaymentMethodData> meth odData,
61 PaymentItem total, List<PaymentItem> displayItems, 61 PaymentItem total, List<PaymentItem> displayItems,
62 Map<String, PaymentDetailsModifier> modifiers, InstrumentDetailsCall back 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, iframeOrigin, 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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698