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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentApp.java

Issue 2511953004: Consider payment method specific data when filtering payment apps. (Closed)
Patch Set: Don't pass null into Collections.unmodifiable() Created 4 years, 1 month 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 side-by-side diff with in-line comments
Download patch
Index: chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentApp.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentApp.java b/chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentApp.java
index 106fa15860c15fd186b6c71850884b0254146e4c..477e5a13bd0638966fda5af07f026b9294d43669 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentApp.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentApp.java
@@ -43,13 +43,24 @@ public interface PaymentApp {
/**
* Returns a list of all payment method names that this app supports. For example, ["visa",
* "mastercard"] in basic card payments. Should return a list of at least one method name.
- * https://w3c.github.io/browser-payment-api/specs/basic-card-payment.html#method-id
+ * https://w3c.github.io/webpayments-methods-card/#method-id
*
* @return The list of all payment method names that this app supports.
*/
Set<String> getAppMethodNames();
/**
+ * Checks whether the app can support the payment methods when the method-specific data is taken
+ * into account.
+ *
+ * @param methodsAndData A mapping from the payment methods supported by this app to the
+ * corresponding method-specific data. Should not be null.
+ * @return True if the given methods are supported when the method-specific data is taken into
+ * account.
+ */
+ boolean supportsMethodsAndData(Map<String, PaymentMethodData> methodsAndData);
+
+ /**
* Returns the identifier for this payment app to be saved in user preferences. For example,
* this can be "autofill", "https://android.com/pay", or "com.example.app.ExamplePaymentApp".
*

Powered by Google App Engine
This is Rietveld 408576698