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

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

Issue 2815763002: Prevent usage of web payments API over insecure HTTPS. (Closed)
Patch Set: Fix typo 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 dcef090b6ac735079740b980c4395edd411d9136..37d62824771f4d4c8de6956979b3e974b45cdfe4 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);
« no previous file with comments | « components/payments/content/payment_request_spec_unittest.cc ('k') | components/payments/content/payment_request_state.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698