Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(51)

Side by Side Diff: net/quic/crypto/proof_verifier_chromium.h

Issue 1437023002: Landing Recent QUIC changes until 2015-11-09 20:32 UTC (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « net/quic/crypto/proof_verifier.h ('k') | net/quic/crypto/proof_verifier_chromium.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 public: 58 public:
59 ProofVerifierChromium(CertVerifier* cert_verifier, 59 ProofVerifierChromium(CertVerifier* cert_verifier,
60 CertPolicyEnforcer* cert_policy_enforcer, 60 CertPolicyEnforcer* cert_policy_enforcer,
61 TransportSecurityState* transport_security_state); 61 TransportSecurityState* transport_security_state);
62 ~ProofVerifierChromium() override; 62 ~ProofVerifierChromium() override;
63 63
64 // ProofVerifier interface 64 // ProofVerifier interface
65 QuicAsyncStatus VerifyProof(const std::string& hostname, 65 QuicAsyncStatus VerifyProof(const std::string& hostname,
66 const std::string& server_config, 66 const std::string& server_config,
67 const std::vector<std::string>& certs, 67 const std::vector<std::string>& certs,
68 const std::string& cert_sct,
68 const std::string& signature, 69 const std::string& signature,
69 const ProofVerifyContext* verify_context, 70 const ProofVerifyContext* verify_context,
70 std::string* error_details, 71 std::string* error_details,
71 scoped_ptr<ProofVerifyDetails>* verify_details, 72 scoped_ptr<ProofVerifyDetails>* verify_details,
72 ProofVerifierCallback* callback) override; 73 ProofVerifierCallback* callback) override;
73 74
74 private: 75 private:
75 class Job; 76 class Job;
76 typedef std::set<Job*> JobSet; 77 typedef std::set<Job*> JobSet;
77 78
78 void OnJobComplete(Job* job); 79 void OnJobComplete(Job* job);
79 80
80 // Set owning pointers to active jobs. 81 // Set owning pointers to active jobs.
81 JobSet active_jobs_; 82 JobSet active_jobs_;
82 83
83 // Underlying verifier used to verify certificates. 84 // Underlying verifier used to verify certificates.
84 CertVerifier* const cert_verifier_; 85 CertVerifier* const cert_verifier_;
85 CertPolicyEnforcer* const cert_policy_enforcer_; 86 CertPolicyEnforcer* const cert_policy_enforcer_;
86 87
87 TransportSecurityState* const transport_security_state_; 88 TransportSecurityState* const transport_security_state_;
88 89
89 DISALLOW_COPY_AND_ASSIGN(ProofVerifierChromium); 90 DISALLOW_COPY_AND_ASSIGN(ProofVerifierChromium);
90 }; 91 };
91 92
92 } // namespace net 93 } // namespace net
93 94
94 #endif // NET_QUIC_CRYPTO_PROOF_VERIFIER_CHROMIUM_H_ 95 #endif // NET_QUIC_CRYPTO_PROOF_VERIFIER_CHROMIUM_H_
OLDNEW
« no previous file with comments | « net/quic/crypto/proof_verifier.h ('k') | net/quic/crypto/proof_verifier_chromium.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698