| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef NET_CERT_CERT_VERIFIER_H_ | 5 #ifndef NET_CERT_CERT_VERIFIER_H_ |
| 6 #define NET_CERT_CERT_VERIFIER_H_ | 6 #define NET_CERT_CERT_VERIFIER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 const BoundNetLog& net_log) = 0; | 124 const BoundNetLog& net_log) = 0; |
| 125 | 125 |
| 126 // Returns true if this CertVerifier supports stapled OCSP responses. | 126 // Returns true if this CertVerifier supports stapled OCSP responses. |
| 127 virtual bool SupportsOCSPStapling(); | 127 virtual bool SupportsOCSPStapling(); |
| 128 | 128 |
| 129 // Creates a CertVerifier implementation that verifies certificates using | 129 // Creates a CertVerifier implementation that verifies certificates using |
| 130 // the preferred underlying cryptographic libraries. | 130 // the preferred underlying cryptographic libraries. |
| 131 static CertVerifier* CreateDefault(); | 131 static CertVerifier* CreateDefault(); |
| 132 }; | 132 }; |
| 133 | 133 |
| 134 // CertVerifierFactory creates CertVerifiers. |
| 135 class NET_EXPORT CertVerifierFactory { |
| 136 public: |
| 137 // Creates a new CertVerifier. |
| 138 virtual CertVerifier* CreateCertVerifier() = 0; |
| 139 |
| 140 protected: |
| 141 CertVerifierFactory(); |
| 142 virtual ~CertVerifierFactory(); |
| 143 |
| 144 DISALLOW_COPY_AND_ASSIGN(CertVerifierFactory); |
| 145 }; |
| 146 |
| 134 } // namespace net | 147 } // namespace net |
| 135 | 148 |
| 136 #endif // NET_CERT_CERT_VERIFIER_H_ | 149 #endif // NET_CERT_CERT_VERIFIER_H_ |
| OLD | NEW |