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 COMPONENTS_PAYMENTS_CONTENT_ORIGIN_SECURITY_CHECKER_H_ |
| 6 #define COMPONENTS_PAYMENTS_CONTENT_ORIGIN_SECURITY_CHECKER_H_ |
| 7 |
| 8 #include "base/macros.h" |
| 9 |
| 10 class GURL; |
| 11 |
| 12 namespace payments { |
| 13 |
| 14 class OriginSecurityChecker { |
| 15 public: |
| 16 // Returns true for a valid |url| from a secure origin. |
| 17 static bool IsOriginSecure(const GURL& url); |
| 18 |
| 19 // Returns true for a valid |url| with a cryptographic scheme, e.g., HTTPS, |
| 20 // HTTPS-SO, WSS. |
| 21 static bool IsSchemeCryptographic(const GURL& url); |
| 22 |
| 23 private: |
| 24 DISALLOW_IMPLICIT_CONSTRUCTORS(OriginSecurityChecker); |
| 25 }; |
| 26 |
| 27 } // namespace payments |
| 28 |
| 29 #endif // COMPONENTS_PAYMENTS_CONTENT_ORIGIN_SECURITY_CHECKER_H_ |
OLD | NEW |