OLD | NEW |
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 <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 | 47 |
48 // CertVerifier: | 48 // CertVerifier: |
49 // Note: |callback| can be null. | 49 // Note: |callback| can be null. |
50 virtual int Verify(net::X509Certificate* cert, | 50 virtual int Verify(net::X509Certificate* cert, |
51 const std::string& hostname, | 51 const std::string& hostname, |
52 int flags, | 52 int flags, |
53 net::CRLSet* crl_set, | 53 net::CRLSet* crl_set, |
54 net::CertVerifyResult* verify_result, | 54 net::CertVerifyResult* verify_result, |
55 const net::CompletionCallback& callback, | 55 const net::CompletionCallback& callback, |
56 RequestHandle* out_req, | 56 RequestHandle* out_req, |
57 const net::BoundNetLog& net_log) OVERRIDE; | 57 const net::BoundNetLog& net_log) override; |
58 | 58 |
59 virtual void CancelRequest(RequestHandle req) OVERRIDE; | 59 virtual void CancelRequest(RequestHandle req) override; |
60 | 60 |
61 // CertTrustAnchorProvider: | 61 // CertTrustAnchorProvider: |
62 virtual const net::CertificateList& GetAdditionalTrustAnchors() OVERRIDE; | 62 virtual const net::CertificateList& GetAdditionalTrustAnchors() override; |
63 | 63 |
64 private: | 64 private: |
65 net::CertificateList trust_anchors_; | 65 net::CertificateList trust_anchors_; |
66 base::Closure anchor_used_callback_; | 66 base::Closure anchor_used_callback_; |
67 scoped_ptr<CertVerifier> delegate_; | 67 scoped_ptr<CertVerifier> delegate_; |
68 | 68 |
69 DISALLOW_COPY_AND_ASSIGN(PolicyCertVerifier); | 69 DISALLOW_COPY_AND_ASSIGN(PolicyCertVerifier); |
70 }; | 70 }; |
71 | 71 |
72 } // namespace policy | 72 } // namespace policy |
73 | 73 |
74 #endif // CHROME_BROWSER_CHROMEOS_POLICY_POLICY_CERT_VERIFIER_H_ | 74 #endif // CHROME_BROWSER_CHROMEOS_POLICY_POLICY_CERT_VERIFIER_H_ |
OLD | NEW |