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

Side by Side Diff: net/cert/multi_threaded_cert_verifier.h

Issue 1994353002: Update CertVerifier::Verify to use RequestParams instead (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@request_params
Patch Set: Rebased Created 4 years, 7 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_CERT_MULTI_THREADED_CERT_VERIFIER_H_ 5 #ifndef NET_CERT_MULTI_THREADED_CERT_VERIFIER_H_
6 #define NET_CERT_MULTI_THREADED_CERT_VERIFIER_H_ 6 #define NET_CERT_MULTI_THREADED_CERT_VERIFIER_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 // trust anchors during verification, provided that the underlying 51 // trust anchors during verification, provided that the underlying
52 // CertVerifyProc supports additional trust beyond the default implementation. 52 // CertVerifyProc supports additional trust beyond the default implementation.
53 // The CertTrustAnchorProvider will only be accessed on the same 53 // The CertTrustAnchorProvider will only be accessed on the same
54 // thread that Verify() is called on; that is, it will not be 54 // thread that Verify() is called on; that is, it will not be
55 // accessed from worker threads. 55 // accessed from worker threads.
56 // It must outlive the MultiThreadedCertVerifier. 56 // It must outlive the MultiThreadedCertVerifier.
57 void SetCertTrustAnchorProvider( 57 void SetCertTrustAnchorProvider(
58 CertTrustAnchorProvider* trust_anchor_provider); 58 CertTrustAnchorProvider* trust_anchor_provider);
59 59
60 // CertVerifier implementation 60 // CertVerifier implementation
61 int Verify(X509Certificate* cert, 61 int Verify(const CertVerifier::RequestParams& params,
62 const std::string& hostname,
63 const std::string& ocsp_response,
64 int flags,
65 CRLSet* crl_set, 62 CRLSet* crl_set,
66 CertVerifyResult* verify_result, 63 CertVerifyResult* verify_result,
67 const CompletionCallback& callback, 64 const CompletionCallback& callback,
68 std::unique_ptr<Request>* out_req, 65 std::unique_ptr<Request>* out_req,
69 const BoundNetLog& net_log) override; 66 const BoundNetLog& net_log) override;
70 67
71 bool SupportsOCSPStapling() override; 68 bool SupportsOCSPStapling() override;
72 69
73 private: 70 private:
74 struct JobToRequestParamsComparator; 71 struct JobToRequestParamsComparator;
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 scoped_refptr<CertVerifyProc> verify_proc_; 161 scoped_refptr<CertVerifyProc> verify_proc_;
165 162
166 CertTrustAnchorProvider* trust_anchor_provider_; 163 CertTrustAnchorProvider* trust_anchor_provider_;
167 164
168 DISALLOW_COPY_AND_ASSIGN(MultiThreadedCertVerifier); 165 DISALLOW_COPY_AND_ASSIGN(MultiThreadedCertVerifier);
169 }; 166 };
170 167
171 } // namespace net 168 } // namespace net
172 169
173 #endif // NET_CERT_MULTI_THREADED_CERT_VERIFIER_H_ 170 #endif // NET_CERT_MULTI_THREADED_CERT_VERIFIER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698