| 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 <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| 11 #include <map> | 11 #include <map> |
| 12 #include <memory> | 12 #include <memory> |
| 13 #include <string> | 13 #include <string> |
| 14 #include <vector> | 14 #include <vector> |
| 15 | 15 |
| 16 #include "base/gtest_prod_util.h" | 16 #include "base/gtest_prod_util.h" |
| 17 #include "base/macros.h" | 17 #include "base/macros.h" |
| 18 #include "base/memory/ref_counted.h" | 18 #include "base/memory/ref_counted.h" |
| 19 #include "base/threading/non_thread_safe.h" | 19 #include "base/threading/non_thread_safe.h" |
| 20 #include "net/base/completion_callback.h" | 20 #include "net/base/completion_callback.h" |
| 21 #include "net/base/net_export.h" | 21 #include "net/base/net_export.h" |
| 22 #include "net/cert/cert_verifier.h" | 22 #include "net/cert/cert_verifier.h" |
| 23 | 23 |
| 24 namespace net { | 24 namespace net { |
| 25 | 25 |
| 26 class CertVerifierJob; | 26 class CertVerifierJob; |
| 27 class CertVerifierRequest; | 27 class CertVerifierRequest; |
| 28 class CertVerifierWorker; | |
| 29 class CertVerifyProc; | 28 class CertVerifyProc; |
| 30 | 29 |
| 31 // MultiThreadedCertVerifier is a CertVerifier implementation that runs | 30 // MultiThreadedCertVerifier is a CertVerifier implementation that runs |
| 32 // synchronous CertVerifier implementations on worker threads. | 31 // synchronous CertVerifier implementations on worker threads. |
| 33 class NET_EXPORT_PRIVATE MultiThreadedCertVerifier | 32 class NET_EXPORT_PRIVATE MultiThreadedCertVerifier |
| 34 : public CertVerifier, | 33 : public CertVerifier, |
| 35 NON_EXPORTED_BASE(public base::NonThreadSafe) { | 34 NON_EXPORTED_BASE(public base::NonThreadSafe) { |
| 36 public: | 35 public: |
| 37 explicit MultiThreadedCertVerifier(CertVerifyProc* verify_proc); | 36 explicit MultiThreadedCertVerifier(CertVerifyProc* verify_proc); |
| 38 | 37 |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 uint64_t inflight_joins_; | 86 uint64_t inflight_joins_; |
| 88 | 87 |
| 89 scoped_refptr<CertVerifyProc> verify_proc_; | 88 scoped_refptr<CertVerifyProc> verify_proc_; |
| 90 | 89 |
| 91 DISALLOW_COPY_AND_ASSIGN(MultiThreadedCertVerifier); | 90 DISALLOW_COPY_AND_ASSIGN(MultiThreadedCertVerifier); |
| 92 }; | 91 }; |
| 93 | 92 |
| 94 } // namespace net | 93 } // namespace net |
| 95 | 94 |
| 96 #endif // NET_CERT_MULTI_THREADED_CERT_VERIFIER_H_ | 95 #endif // NET_CERT_MULTI_THREADED_CERT_VERIFIER_H_ |
| OLD | NEW |