OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 BLIMP_NET_EXACT_MATCH_CERT_VERIFIER_H_ | 5 #ifndef BLIMP_NET_EXACT_MATCH_CERT_VERIFIER_H_ |
6 #define BLIMP_NET_EXACT_MATCH_CERT_VERIFIER_H_ | 6 #define BLIMP_NET_EXACT_MATCH_CERT_VERIFIER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 15 matching lines...) Expand all Loading... |
26 scoped_refptr<net::X509Certificate> engine_cert); | 26 scoped_refptr<net::X509Certificate> engine_cert); |
27 | 27 |
28 ~ExactMatchCertVerifier() override; | 28 ~ExactMatchCertVerifier() override; |
29 | 29 |
30 // net::CertVerifier implementation. | 30 // net::CertVerifier implementation. |
31 int Verify(const RequestParams& params, | 31 int Verify(const RequestParams& params, |
32 net::CRLSet* crl_set, | 32 net::CRLSet* crl_set, |
33 net::CertVerifyResult* verify_result, | 33 net::CertVerifyResult* verify_result, |
34 const net::CompletionCallback& callback, | 34 const net::CompletionCallback& callback, |
35 std::unique_ptr<Request>* out_req, | 35 std::unique_ptr<Request>* out_req, |
36 const net::BoundNetLog& net_log) override; | 36 const net::NetLogWithSource& net_log) override; |
37 | 37 |
38 private: | 38 private: |
39 scoped_refptr<net::X509Certificate> engine_cert_; | 39 scoped_refptr<net::X509Certificate> engine_cert_; |
40 std::vector<net::HashValue> engine_cert_hashes_; | 40 std::vector<net::HashValue> engine_cert_hashes_; |
41 | 41 |
42 DISALLOW_COPY_AND_ASSIGN(ExactMatchCertVerifier); | 42 DISALLOW_COPY_AND_ASSIGN(ExactMatchCertVerifier); |
43 }; | 43 }; |
44 | 44 |
45 } // namespace blimp | 45 } // namespace blimp |
46 | 46 |
47 #endif // BLIMP_NET_EXACT_MATCH_CERT_VERIFIER_H_ | 47 #endif // BLIMP_NET_EXACT_MATCH_CERT_VERIFIER_H_ |
OLD | NEW |