OLD | NEW |
---|---|
(Empty) | |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef COMPONENTS_CRONET_CERT_CERT_VERIFIER_CACHE_PERSISTER_H_ | |
6 #define COMPONENTS_CRONET_CERT_CERT_VERIFIER_CACHE_PERSISTER_H_ | |
Ryan Sleevi
2016/06/21 20:31:02
s/Persister/Serializer/, to reflect your naming of
ramant (doing other things)
2016/06/22 03:51:36
Done.
| |
7 | |
8 namespace cronet_pb { | |
9 class CertVerificationCache; | |
10 } // namespace cronet_pb | |
11 | |
12 namespace net { | |
13 class CachingCertVerifier; | |
14 } // namespace net | |
15 | |
16 namespace cronet { | |
17 | |
18 // Iterates through |verifier|'s cache and returns serialized data. This can be | |
19 // used to populate a new net::CachingCertVerifier with | |
20 // |DeserializeCertVerifierCache()|. | |
21 cronet_pb::CertVerificationCache SerializeCertVerifierCache( | |
22 const net::CachingCertVerifier& verifier); | |
23 | |
24 // Populates |verifier|'s cache. Returns true if the |cert_cache| is | |
25 // deserialized correctly. | |
26 bool DeserializeCertVerifierCache( | |
27 const cronet_pb::CertVerificationCache& cert_cache, | |
28 net::CachingCertVerifier* verifier); | |
29 | |
30 } // namespace cronet | |
31 | |
32 #endif // COMPONENTS_CRONET_CERT_CERT_VERIFIER_CACHE_PERSISTER_H_ | |
OLD | NEW |