| 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_SSL_SERVER_BOUND_CERT_SERVICE_H_ | 5 #ifndef NET_SSL_SERVER_BOUND_CERT_SERVICE_H_ |
| 6 #define NET_SSL_SERVER_BOUND_CERT_SERVICE_H_ | 6 #define NET_SSL_SERVER_BOUND_CERT_SERVICE_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 190 bool create_if_missing, | 190 bool create_if_missing, |
| 191 const CompletionCallback& callback, | 191 const CompletionCallback& callback, |
| 192 RequestHandle* out_req); | 192 RequestHandle* out_req); |
| 193 | 193 |
| 194 scoped_ptr<ServerBoundCertStore> server_bound_cert_store_; | 194 scoped_ptr<ServerBoundCertStore> server_bound_cert_store_; |
| 195 scoped_refptr<base::TaskRunner> task_runner_; | 195 scoped_refptr<base::TaskRunner> task_runner_; |
| 196 | 196 |
| 197 // inflight_ maps from a server to an active generation which is taking | 197 // inflight_ maps from a server to an active generation which is taking |
| 198 // place. | 198 // place. |
| 199 std::map<std::string, ServerBoundCertServiceJob*> inflight_; | 199 std::map<std::string, ServerBoundCertServiceJob*> inflight_; |
| 200 base::WeakPtrFactory<ServerBoundCertService> weak_ptr_factory_; |
| 200 | 201 |
| 201 uint64 requests_; | 202 uint64 requests_; |
| 202 uint64 cert_store_hits_; | 203 uint64 cert_store_hits_; |
| 203 uint64 inflight_joins_; | 204 uint64 inflight_joins_; |
| 204 uint64 workers_created_; | 205 uint64 workers_created_; |
| 205 | 206 |
| 206 bool is_system_time_valid_; | 207 bool is_system_time_valid_; |
| 207 | 208 |
| 208 base::WeakPtrFactory<ServerBoundCertService> weak_ptr_factory_; | |
| 209 | |
| 210 DISALLOW_COPY_AND_ASSIGN(ServerBoundCertService); | 209 DISALLOW_COPY_AND_ASSIGN(ServerBoundCertService); |
| 211 }; | 210 }; |
| 212 | 211 |
| 213 } // namespace net | 212 } // namespace net |
| 214 | 213 |
| 215 #endif // NET_SSL_SERVER_BOUND_CERT_SERVICE_H_ | 214 #endif // NET_SSL_SERVER_BOUND_CERT_SERVICE_H_ |
| OLD | NEW |