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

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

Issue 309013006: Add quic_types.h and move the typedefs unrelated to the QUIC protocol (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 months 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 | Annotate | Revision Log
« 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 30 matching lines...) Expand all
41 }; 41 };
42 42
43 // ProofVerifierChromium implements the QUIC ProofVerifier interface. It is 43 // ProofVerifierChromium implements the QUIC ProofVerifier interface. It is
44 // capable of handling multiple simultaneous requests. 44 // capable of handling multiple simultaneous requests.
45 class NET_EXPORT_PRIVATE ProofVerifierChromium : public ProofVerifier { 45 class NET_EXPORT_PRIVATE ProofVerifierChromium : public ProofVerifier {
46 public: 46 public:
47 explicit ProofVerifierChromium(CertVerifier* cert_verifier); 47 explicit ProofVerifierChromium(CertVerifier* cert_verifier);
48 virtual ~ProofVerifierChromium(); 48 virtual ~ProofVerifierChromium();
49 49
50 // ProofVerifier interface 50 // ProofVerifier interface
51 virtual Status VerifyProof(const std::string& hostname, 51 virtual QuicAsyncStatus VerifyProof(
52 const std::string& server_config, 52 const std::string& hostname,
53 const std::vector<std::string>& certs, 53 const std::string& server_config,
54 const std::string& signature, 54 const std::vector<std::string>& certs,
55 const ProofVerifyContext* verify_context, 55 const std::string& signature,
56 std::string* error_details, 56 const ProofVerifyContext* verify_context,
57 scoped_ptr<ProofVerifyDetails>* verify_details, 57 std::string* error_details,
58 ProofVerifierCallback* callback) OVERRIDE; 58 scoped_ptr<ProofVerifyDetails>* verify_details,
59 ProofVerifierCallback* callback) OVERRIDE;
59 60
60 private: 61 private:
61 class Job; 62 class Job;
62 63
63 void OnJobComplete(Job* job); 64 void OnJobComplete(Job* job);
64 65
65 // Set owning pointers to active jobs. 66 // Set owning pointers to active jobs.
66 typedef std::set<Job*> JobSet; 67 typedef std::set<Job*> JobSet;
67 JobSet active_jobs_; 68 JobSet active_jobs_;
68 69
69 // Underlying verifier used to verify certificates. 70 // Underlying verifier used to verify certificates.
70 CertVerifier* const cert_verifier_; 71 CertVerifier* const cert_verifier_;
71 72
72 DISALLOW_COPY_AND_ASSIGN(ProofVerifierChromium); 73 DISALLOW_COPY_AND_ASSIGN(ProofVerifierChromium);
73 }; 74 };
74 75
75 } // namespace net 76 } // namespace net
76 77
77 #endif // NET_QUIC_CRYPTO_PROOF_VERIFIER_CHROMIUM_H_ 78 #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