| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_BASE_CERT_VERIFIER_H_ | 5 #ifndef NET_BASE_CERT_VERIFIER_H_ |
| 6 #define NET_BASE_CERT_VERIFIER_H_ | 6 #define NET_BASE_CERT_VERIFIER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <map> | 9 #include <map> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 176 int flags; | 176 int flags; |
| 177 }; | 177 }; |
| 178 | 178 |
| 179 void HandleResult(X509Certificate* cert, | 179 void HandleResult(X509Certificate* cert, |
| 180 const std::string& hostname, | 180 const std::string& hostname, |
| 181 int flags, | 181 int flags, |
| 182 int error, | 182 int error, |
| 183 const CertVerifyResult& verify_result); | 183 const CertVerifyResult& verify_result); |
| 184 | 184 |
| 185 // CertDatabase::Observer methods: | 185 // CertDatabase::Observer methods: |
| 186 virtual void OnCertTrustChanged(const X509Certificate* cert); | 186 virtual void OnCertTrustChanged(const X509Certificate* cert) OVERRIDE; |
| 187 | 187 |
| 188 // cache_ maps from a request to a cached result. The cached result may | 188 // cache_ maps from a request to a cached result. The cached result may |
| 189 // have expired and the size of |cache_| must be <= max_cache_entries_. | 189 // have expired and the size of |cache_| must be <= max_cache_entries_. |
| 190 std::map<RequestParams, CachedCertVerifyResult> cache_; | 190 std::map<RequestParams, CachedCertVerifyResult> cache_; |
| 191 | 191 |
| 192 // inflight_ maps from a request to an active verification which is taking | 192 // inflight_ maps from a request to an active verification which is taking |
| 193 // place. | 193 // place. |
| 194 std::map<RequestParams, CertVerifierJob*> inflight_; | 194 std::map<RequestParams, CertVerifierJob*> inflight_; |
| 195 | 195 |
| 196 scoped_ptr<TimeService> time_service_; | 196 scoped_ptr<TimeService> time_service_; |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 239 // The current request (if any). | 239 // The current request (if any). |
| 240 CertVerifier::RequestHandle cur_request_; | 240 CertVerifier::RequestHandle cur_request_; |
| 241 CompletionCallback cur_request_callback_; | 241 CompletionCallback cur_request_callback_; |
| 242 | 242 |
| 243 DISALLOW_COPY_AND_ASSIGN(SingleRequestCertVerifier); | 243 DISALLOW_COPY_AND_ASSIGN(SingleRequestCertVerifier); |
| 244 }; | 244 }; |
| 245 | 245 |
| 246 } // namespace net | 246 } // namespace net |
| 247 | 247 |
| 248 #endif // NET_BASE_CERT_VERIFIER_H_ | 248 #endif // NET_BASE_CERT_VERIFIER_H_ |
| OLD | NEW |