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_MULTI_THREADED_CERT_VERIFIER_H_ | 5 #ifndef NET_CERT_MULTI_THREADED_CERT_VERIFIER_H_ |
6 #define NET_CERT_MULTI_THREADED_CERT_VERIFIER_H_ | 6 #define NET_CERT_MULTI_THREADED_CERT_VERIFIER_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 ~RequestParams(); | 89 ~RequestParams(); |
90 | 90 |
91 bool operator<(const RequestParams& other) const; | 91 bool operator<(const RequestParams& other) const; |
92 | 92 |
93 std::string hostname; | 93 std::string hostname; |
94 int flags; | 94 int flags; |
95 std::vector<SHA1HashValue> hash_values; | 95 std::vector<SHA1HashValue> hash_values; |
96 }; | 96 }; |
97 | 97 |
98 // CachedResult contains the result of a certificate verification. | 98 // CachedResult contains the result of a certificate verification. |
99 struct CachedResult { | 99 struct NET_EXPORT_PRIVATE CachedResult { |
100 CachedResult(); | 100 CachedResult(); |
101 ~CachedResult(); | 101 ~CachedResult(); |
102 | 102 |
103 int error; // The return value of CertVerifier::Verify. | 103 int error; // The return value of CertVerifier::Verify. |
104 CertVerifyResult result; // The output of CertVerifier::Verify. | 104 CertVerifyResult result; // The output of CertVerifier::Verify. |
105 }; | 105 }; |
106 | 106 |
107 // Rather than having a single validity point along a monotonically increasing | 107 // Rather than having a single validity point along a monotonically increasing |
108 // timeline, certificate verification is based on falling within a range of | 108 // timeline, certificate verification is based on falling within a range of |
109 // the certificate's NotBefore and NotAfter and based on what the current | 109 // the certificate's NotBefore and NotAfter and based on what the current |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
163 scoped_refptr<CertVerifyProc> verify_proc_; | 163 scoped_refptr<CertVerifyProc> verify_proc_; |
164 | 164 |
165 CertTrustAnchorProvider* trust_anchor_provider_; | 165 CertTrustAnchorProvider* trust_anchor_provider_; |
166 | 166 |
167 DISALLOW_COPY_AND_ASSIGN(MultiThreadedCertVerifier); | 167 DISALLOW_COPY_AND_ASSIGN(MultiThreadedCertVerifier); |
168 }; | 168 }; |
169 | 169 |
170 } // namespace net | 170 } // namespace net |
171 | 171 |
172 #endif // NET_CERT_MULTI_THREADED_CERT_VERIFIER_H_ | 172 #endif // NET_CERT_MULTI_THREADED_CERT_VERIFIER_H_ |
OLD | NEW |