| 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 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 146 uint64 requests() const { return requests_; } | 146 uint64 requests() const { return requests_; } |
| 147 uint64 inflight_joins() const { return inflight_joins_; } | 147 uint64 inflight_joins() const { return inflight_joins_; } |
| 148 | 148 |
| 149 // cache_ maps from a request to a cached result. | 149 // cache_ maps from a request to a cached result. |
| 150 CertVerifierCache cache_; | 150 CertVerifierCache cache_; |
| 151 | 151 |
| 152 // inflight_ maps from a request to an active verification which is taking | 152 // inflight_ maps from a request to an active verification which is taking |
| 153 // place. | 153 // place. |
| 154 std::map<RequestParams, CertVerifierJob*> inflight_; | 154 std::map<RequestParams, CertVerifierJob*> inflight_; |
| 155 | 155 |
| 156 // A non-owning pointer to the first job for histogramming. |
| 157 CertVerifierJob* first_job_; |
| 158 |
| 156 uint64 requests_; | 159 uint64 requests_; |
| 157 uint64 cache_hits_; | 160 uint64 cache_hits_; |
| 158 uint64 inflight_joins_; | 161 uint64 inflight_joins_; |
| 159 | 162 |
| 160 scoped_refptr<CertVerifyProc> verify_proc_; | 163 scoped_refptr<CertVerifyProc> verify_proc_; |
| 161 | 164 |
| 162 CertTrustAnchorProvider* trust_anchor_provider_; | 165 CertTrustAnchorProvider* trust_anchor_provider_; |
| 163 | 166 |
| 164 DISALLOW_COPY_AND_ASSIGN(MultiThreadedCertVerifier); | 167 DISALLOW_COPY_AND_ASSIGN(MultiThreadedCertVerifier); |
| 165 }; | 168 }; |
| 166 | 169 |
| 167 } // namespace net | 170 } // namespace net |
| 168 | 171 |
| 169 #endif // NET_CERT_MULTI_THREADED_CERT_VERIFIER_H_ | 172 #endif // NET_CERT_MULTI_THREADED_CERT_VERIFIER_H_ |
| OLD | NEW |