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

Unified Diff: components/payments/content/payment_request_state.h

Issue 2815763002: Prevent usage of web payments API over insecure HTTPS. (Closed)
Patch Set: Self-review Created 3 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: components/payments/content/payment_request_state.h
diff --git a/components/payments/content/payment_request_state.h b/components/payments/content/payment_request_state.h
index cb0b2a97dd00e59c62b376a96ce537097fdd9025..2d82b535ae73000944fc74c724efd4bfc41e2073 100644
--- a/components/payments/content/payment_request_state.h
+++ b/components/payments/content/payment_request_state.h
@@ -82,6 +82,12 @@ class PaymentRequestState : public PaymentResponseHelper::Delegate {
// Returns whether the user has at least one instrument that satisfies the
// specified supported payment methods.
bool CanMakePayment() const;
+
+ // Returns true if the payment methods that the merchant website have
+ // requested are supported. For example, may return true for "basic-card", but
+ // false for "https://bobpay.com".
+ bool AreRequestedMethodsSupported() const;
+
void AddObserver(Observer* observer);
void RemoveObserver(Observer* observer);

Powered by Google App Engine
This is Rietveld 408576698