OLD | NEW |
(Empty) | |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROME_BROWSER_PAYMENTS_SSL_VALIDITY_CHECKER_H_ |
| 6 #define CHROME_BROWSER_PAYMENTS_SSL_VALIDITY_CHECKER_H_ |
| 7 |
| 8 #include "base/macros.h" |
| 9 |
| 10 namespace content { |
| 11 class WebContents; |
| 12 } |
| 13 |
| 14 namespace payments { |
| 15 |
| 16 class SslValidityChecker { |
| 17 public: |
| 18 // Returns true for |web_contents| with a valid SSL certificate. Only |
| 19 // EV_SECURE, SECURE, and SECURE_WITH_POLICY_INSTALLED_CERT are considered |
| 20 // valid for web payments. |
| 21 static bool IsSslCertificateValid(content::WebContents* web_contents); |
| 22 |
| 23 private: |
| 24 DISALLOW_IMPLICIT_CONSTRUCTORS(SslValidityChecker); |
| 25 }; |
| 26 |
| 27 } // namespace payments |
| 28 |
| 29 #endif // CHROME_BROWSER_PAYMENTS_SSL_VALIDITY_CHECKER_H_ |
OLD | NEW |