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

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

Issue 422623004: Add a Clone method to ProofVerifyDetails to allow for the proof verify (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add comment Created 6 years, 4 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
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 24
25 // ProofVerifyDetailsChromium is the implementation-specific information that a 25 // ProofVerifyDetailsChromium is the implementation-specific information that a
26 // ProofVerifierChromium returns about a certificate verification. 26 // ProofVerifierChromium returns about a certificate verification.
27 struct ProofVerifyDetailsChromium : public ProofVerifyDetails { 27 class NET_EXPORT_PRIVATE ProofVerifyDetailsChromium
28 : public ProofVerifyDetails {
28 public: 29 public:
30 virtual ProofVerifyDetails* Clone() const OVERRIDE;
wtc 2014/07/29 01:48:24 Should we add a "ProofVerifyDetails interface" com
Ryan Hamilton 2014/07/29 17:04:50 Done.
31
29 CertVerifyResult cert_verify_result; 32 CertVerifyResult cert_verify_result;
30 }; 33 };
31 34
32 // ProofVerifyContextChromium is the implementation-specific information that a 35 // ProofVerifyContextChromium is the implementation-specific information that a
33 // ProofVerifierChromium needs in order to log correctly. 36 // ProofVerifierChromium needs in order to log correctly.
34 struct ProofVerifyContextChromium : public ProofVerifyContext { 37 struct ProofVerifyContextChromium : public ProofVerifyContext {
35 public: 38 public:
36 explicit ProofVerifyContextChromium(const BoundNetLog& net_log) 39 explicit ProofVerifyContextChromium(const BoundNetLog& net_log)
37 : net_log(net_log) {} 40 : net_log(net_log) {}
38 41
(...skipping 29 matching lines...) Expand all
68 71
69 // Underlying verifier used to verify certificates. 72 // Underlying verifier used to verify certificates.
70 CertVerifier* const cert_verifier_; 73 CertVerifier* const cert_verifier_;
71 74
72 DISALLOW_COPY_AND_ASSIGN(ProofVerifierChromium); 75 DISALLOW_COPY_AND_ASSIGN(ProofVerifierChromium);
73 }; 76 };
74 77
75 } // namespace net 78 } // namespace net
76 79
77 #endif // NET_QUIC_CRYPTO_PROOF_VERIFIER_CHROMIUM_H_ 80 #endif // NET_QUIC_CRYPTO_PROOF_VERIFIER_CHROMIUM_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698