OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_QUIC_CRYPTO_PROOF_VERIFIER_CHROMIUM_H_ | 5 #ifndef NET_QUIC_CRYPTO_PROOF_VERIFIER_CHROMIUM_H_ |
6 #define NET_QUIC_CRYPTO_PROOF_VERIFIER_CHROMIUM_H_ | 6 #define NET_QUIC_CRYPTO_PROOF_VERIFIER_CHROMIUM_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 std::string pinning_failure_log; | 47 std::string pinning_failure_log; |
48 | 48 |
49 // True if PKP was bypassed due to a local trust anchor. | 49 // True if PKP was bypassed due to a local trust anchor. |
50 bool pkp_bypassed; | 50 bool pkp_bypassed; |
51 }; | 51 }; |
52 | 52 |
53 // ProofVerifyContextChromium is the implementation-specific information that a | 53 // ProofVerifyContextChromium is the implementation-specific information that a |
54 // ProofVerifierChromium needs in order to log correctly. | 54 // ProofVerifierChromium needs in order to log correctly. |
55 struct ProofVerifyContextChromium : public ProofVerifyContext { | 55 struct ProofVerifyContextChromium : public ProofVerifyContext { |
56 public: | 56 public: |
57 ProofVerifyContextChromium(int cert_verify_flags, const BoundNetLog& net_log) | 57 ProofVerifyContextChromium(int cert_verify_flags, |
| 58 const NetLogWithSource& net_log) |
58 : cert_verify_flags(cert_verify_flags), net_log(net_log) {} | 59 : cert_verify_flags(cert_verify_flags), net_log(net_log) {} |
59 | 60 |
60 int cert_verify_flags; | 61 int cert_verify_flags; |
61 BoundNetLog net_log; | 62 NetLogWithSource net_log; |
62 }; | 63 }; |
63 | 64 |
64 // ProofVerifierChromium implements the QUIC ProofVerifier interface. It is | 65 // ProofVerifierChromium implements the QUIC ProofVerifier interface. It is |
65 // capable of handling multiple simultaneous requests. | 66 // capable of handling multiple simultaneous requests. |
66 class NET_EXPORT_PRIVATE ProofVerifierChromium : public ProofVerifier { | 67 class NET_EXPORT_PRIVATE ProofVerifierChromium : public ProofVerifier { |
67 public: | 68 public: |
68 ProofVerifierChromium(CertVerifier* cert_verifier, | 69 ProofVerifierChromium(CertVerifier* cert_verifier, |
69 CTPolicyEnforcer* ct_policy_enforcer, | 70 CTPolicyEnforcer* ct_policy_enforcer, |
70 TransportSecurityState* transport_security_state, | 71 TransportSecurityState* transport_security_state, |
71 CTVerifier* cert_transparency_verifier); | 72 CTVerifier* cert_transparency_verifier); |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 | 109 |
109 TransportSecurityState* const transport_security_state_; | 110 TransportSecurityState* const transport_security_state_; |
110 CTVerifier* const cert_transparency_verifier_; | 111 CTVerifier* const cert_transparency_verifier_; |
111 | 112 |
112 DISALLOW_COPY_AND_ASSIGN(ProofVerifierChromium); | 113 DISALLOW_COPY_AND_ASSIGN(ProofVerifierChromium); |
113 }; | 114 }; |
114 | 115 |
115 } // namespace net | 116 } // namespace net |
116 | 117 |
117 #endif // NET_QUIC_CRYPTO_PROOF_VERIFIER_CHROMIUM_H_ | 118 #endif // NET_QUIC_CRYPTO_PROOF_VERIFIER_CHROMIUM_H_ |
OLD | NEW |