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

Side by Side Diff: chrome/browser/chromeos/policy/policy_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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 CHROME_BROWSER_CHROMEOS_POLICY_POLICY_CERT_VERIFIER_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_POLICY_POLICY_CERT_VERIFIER_H_
6 #define CHROME_BROWSER_CHROMEOS_POLICY_POLICY_CERT_VERIFIER_H_ 6 #define CHROME_BROWSER_CHROMEOS_POLICY_POLICY_CERT_VERIFIER_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 29 matching lines...) Expand all
40 ~PolicyCertVerifier() override; 40 ~PolicyCertVerifier() override;
41 41
42 void InitializeOnIOThread( 42 void InitializeOnIOThread(
43 const scoped_refptr<net::CertVerifyProc>& verify_proc); 43 const scoped_refptr<net::CertVerifyProc>& verify_proc);
44 44
45 // Sets the additional trust anchors. 45 // Sets the additional trust anchors.
46 void SetTrustAnchors(const net::CertificateList& trust_anchors); 46 void SetTrustAnchors(const net::CertificateList& trust_anchors);
47 47
48 // CertVerifier: 48 // CertVerifier:
49 // Note: |callback| can be null. 49 // Note: |callback| can be null.
50 int Verify(net::X509Certificate* cert, 50 int Verify(const net::CertVerifier::RequestParams& params,
51 const std::string& hostname,
52 const std::string& ocsp_response,
53 int flags,
54 net::CRLSet* crl_set, 51 net::CRLSet* crl_set,
55 net::CertVerifyResult* verify_result, 52 net::CertVerifyResult* verify_result,
56 const net::CompletionCallback& callback, 53 const net::CompletionCallback& callback,
57 std::unique_ptr<Request>* out_req, 54 std::unique_ptr<Request>* out_req,
58 const net::BoundNetLog& net_log) override; 55 const net::BoundNetLog& net_log) override;
59 56
60 bool SupportsOCSPStapling() override; 57 bool SupportsOCSPStapling() override;
61 58
62 // CertTrustAnchorProvider: 59 // CertTrustAnchorProvider:
63 const net::CertificateList& GetAdditionalTrustAnchors() override; 60 const net::CertificateList& GetAdditionalTrustAnchors() override;
64 61
65 private: 62 private:
66 net::CertificateList trust_anchors_; 63 net::CertificateList trust_anchors_;
67 base::Closure anchor_used_callback_; 64 base::Closure anchor_used_callback_;
68 std::unique_ptr<CertVerifier> delegate_; 65 std::unique_ptr<CertVerifier> delegate_;
69 66
70 DISALLOW_COPY_AND_ASSIGN(PolicyCertVerifier); 67 DISALLOW_COPY_AND_ASSIGN(PolicyCertVerifier);
71 }; 68 };
72 69
73 } // namespace policy 70 } // namespace policy
74 71
75 #endif // CHROME_BROWSER_CHROMEOS_POLICY_POLICY_CERT_VERIFIER_H_ 72 #endif // CHROME_BROWSER_CHROMEOS_POLICY_POLICY_CERT_VERIFIER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698