OLD | NEW |
---|---|
(Empty) | |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CHROME_BROWSER_CHROMEOS_POLICY_POLICY_CERT_VERIFIER_H_ | |
6 #define CHROME_BROWSER_CHROMEOS_POLICY_POLICY_CERT_VERIFIER_H_ | |
7 | |
8 #include "base/memory/scoped_ptr.h" | |
9 #include "net/cert/cert_verifier.h" | |
10 | |
11 namespace net { | |
12 class CertTrustAnchorProvider; | |
13 } | |
14 | |
15 namespace policy { | |
16 | |
17 class PolicyCertVerifier : public net::CertVerifier { | |
Ryan Sleevi
2013/04/02 19:16:07
Comment describing this class please
Joao da Silva
2013/04/03 15:24:39
Done.
| |
18 public: | |
19 PolicyCertVerifier(void* profile, | |
20 net::CertTrustAnchorProvider* trust_anchor_provider); | |
21 virtual ~PolicyCertVerifier(); | |
22 | |
23 // CertVerifier implementation: | |
24 // Note: |callback| can be null. | |
25 virtual int Verify(net::X509Certificate* cert, | |
26 const std::string& hostname, | |
27 int flags, | |
28 net::CRLSet* crl_set, | |
29 net::CertVerifyResult* verify_result, | |
30 const net::CompletionCallback& callback, | |
31 RequestHandle* out_req, | |
32 const net::BoundNetLog& net_log) OVERRIDE; | |
33 | |
34 virtual void CancelRequest(RequestHandle req) OVERRIDE; | |
35 | |
36 private: | |
37 void* profile_; | |
38 scoped_ptr<CertVerifier> delegate_; | |
39 }; | |
40 | |
41 } // namespace policy | |
42 | |
43 #endif // CHROME_BROWSER_CHROMEOS_POLICY_POLICY_CERT_VERIFIER_H_ | |
OLD | NEW |