Chromium Code Reviews| 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/base/cert_verifier.h" | |
| 10 | |
| 11 namespace net { | |
| 12 class CertTrustAnchorProvider; | |
| 13 } | |
| 14 | |
| 15 namespace policy { | |
| 16 | |
| 17 class PolicyCertVerifier : public net::CertVerifier { | |
| 18 public: | |
| 19 PolicyCertVerifier(void* profile, | |
| 20 net::CertTrustAnchorProvider* trust_anchor_provider); | |
| 21 virtual ~PolicyCertVerifier(); | |
| 22 | |
| 23 // CertVerifier: | |
| 24 virtual int Verify(net::X509Certificate* cert, | |
|
pneubeck (no reviews)
2013/03/26 11:04:50
mention that |callback| may be null, in contrast t
Joao da Silva
2013/03/31 19:22:14
Done.
| |
| 25 const std::string& hostname, | |
| 26 int flags, | |
| 27 net::CRLSet* crl_set, | |
| 28 net::CertVerifyResult* verify_result, | |
| 29 const net::CompletionCallback& callback, | |
| 30 RequestHandle* out_req, | |
| 31 const net::BoundNetLog& net_log) OVERRIDE; | |
| 32 | |
| 33 virtual void CancelRequest(RequestHandle req) OVERRIDE; | |
| 34 | |
| 35 private: | |
| 36 void* profile_; | |
| 37 scoped_ptr<CertVerifier> delegate_; | |
| 38 }; | |
| 39 | |
| 40 } // namespace policy | |
| 41 | |
| 42 #endif // CHROME_BROWSER_CHROMEOS_POLICY_POLICY_CERT_VERIFIER_H_ | |
| OLD | NEW |