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

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

Issue 346323002: net: Implement ChannelIDSourceChromium, which is based on Chromium's (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Rebase Created 6 years, 5 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/channel_id_chromium.cc ('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>
11 11
12 #include "base/basictypes.h" 12 #include "base/basictypes.h"
13 #include "base/compiler_specific.h" 13 #include "base/compiler_specific.h"
14 #include "base/memory/scoped_ptr.h" 14 #include "base/memory/scoped_ptr.h"
15 #include "net/base/net_export.h" 15 #include "net/base/net_export.h"
16 #include "net/base/net_log.h" 16 #include "net/base/net_log.h"
17 #include "net/cert/cert_verify_result.h" 17 #include "net/cert/cert_verify_result.h"
18 #include "net/cert/x509_certificate.h" 18 #include "net/cert/x509_certificate.h"
19 #include "net/quic/crypto/proof_verifier.h" 19 #include "net/quic/crypto/proof_verifier.h"
20 20
21 namespace net { 21 namespace net {
22 22
23 class CertVerifier; 23 class CertVerifier;
24 class SingleRequestCertVerifier;
25 24
26 // ProofVerifyDetailsChromium is the implementation-specific information that a 25 // ProofVerifyDetailsChromium is the implementation-specific information that a
27 // ProofVerifierChromium returns about a certificate verification. 26 // ProofVerifierChromium returns about a certificate verification.
28 struct ProofVerifyDetailsChromium : public ProofVerifyDetails { 27 struct ProofVerifyDetailsChromium : public ProofVerifyDetails {
29 public: 28 public:
30 CertVerifyResult cert_verify_result; 29 CertVerifyResult cert_verify_result;
31 }; 30 };
32 31
33 // ProofVerifyContextChromium is the implementation-specific information that a 32 // ProofVerifyContextChromium is the implementation-specific information that a
34 // ProofVerifierChromium needs in order to log correctly. 33 // ProofVerifierChromium needs in order to log correctly.
(...skipping 18 matching lines...) Expand all
53 const std::string& server_config, 52 const std::string& server_config,
54 const std::vector<std::string>& certs, 53 const std::vector<std::string>& certs,
55 const std::string& signature, 54 const std::string& signature,
56 const ProofVerifyContext* verify_context, 55 const ProofVerifyContext* verify_context,
57 std::string* error_details, 56 std::string* error_details,
58 scoped_ptr<ProofVerifyDetails>* verify_details, 57 scoped_ptr<ProofVerifyDetails>* verify_details,
59 ProofVerifierCallback* callback) OVERRIDE; 58 ProofVerifierCallback* callback) OVERRIDE;
60 59
61 private: 60 private:
62 class Job; 61 class Job;
62 typedef std::set<Job*> JobSet;
63 63
64 void OnJobComplete(Job* job); 64 void OnJobComplete(Job* job);
65 65
66 // Set owning pointers to active jobs. 66 // Set owning pointers to active jobs.
67 typedef std::set<Job*> JobSet;
68 JobSet active_jobs_; 67 JobSet active_jobs_;
69 68
70 // Underlying verifier used to verify certificates. 69 // Underlying verifier used to verify certificates.
71 CertVerifier* const cert_verifier_; 70 CertVerifier* const cert_verifier_;
72 71
73 DISALLOW_COPY_AND_ASSIGN(ProofVerifierChromium); 72 DISALLOW_COPY_AND_ASSIGN(ProofVerifierChromium);
74 }; 73 };
75 74
76 } // namespace net 75 } // namespace net
77 76
78 #endif // NET_QUIC_CRYPTO_PROOF_VERIFIER_CHROMIUM_H_ 77 #endif // NET_QUIC_CRYPTO_PROOF_VERIFIER_CHROMIUM_H_
OLDNEW
« no previous file with comments | « net/quic/crypto/channel_id_chromium.cc ('k') | net/quic/crypto/proof_verifier_chromium.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698