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

Unified Diff: components/payments/core/payment_request_delegate.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/core/payment_request_delegate.h
diff --git a/components/payments/core/payment_request_delegate.h b/components/payments/core/payment_request_delegate.h
index aab278af6f26e96b19f054d2773044f4144652cb..864324b5352539745ccadb0a59aaaee13a4768b0 100644
--- a/components/payments/core/payment_request_delegate.h
+++ b/components/payments/core/payment_request_delegate.h
@@ -13,6 +13,8 @@
#include "third_party/libaddressinput/src/cpp/include/libaddressinput/source.h"
#include "third_party/libaddressinput/src/cpp/include/libaddressinput/storage.h"
+class GURL;
+
namespace i18n {
namespace addressinput {
class Storage;
@@ -53,6 +55,13 @@ class PaymentRequestDelegate {
// Returns whether the user is in Incognito mode.
virtual bool IsIncognito() const = 0;
+ // Returns true if the SSL certificate is valid. Should be called only for
+ // cryptographic schemes.
+ virtual bool IsValidSslCertificate() = 0;
+
+ // Returns the URL of the page that is currently being displayed.
+ virtual const GURL& GetLastCommittedURL() const = 0;
+
// Starts a FullCardRequest to unmask |credit_card|.
virtual void DoFullCardRequest(
const autofill::CreditCard& credit_card,

Powered by Google App Engine
This is Rietveld 408576698