Chromium Code Reviews| 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_ | |
| 7 | |
| 8 #include "base/macros.h" | |
|
Ryan Sleevi
2016/06/21 01:22:10
Unused?
ramant (doing other things)
2016/06/21 16:52:02
Done.
| |
| 9 #include "components/cronet/cert/proto/cert_verification.pb.h" | |
|
Ryan Sleevi
2016/06/21 01:22:10
Forward declare, to avoid build system dependency
ramant (doing other things)
2016/06/21 16:52:02
Done.
| |
| 10 | |
| 11 namespace net { | |
| 12 class CachingCertVerifier; | |
| 13 } // namespace net | |
| 14 | |
| 15 namespace cronet { | |
| 16 | |
| 17 // Iterates through |verifier|'s cache and returns serialized data. This can be | |
| 18 // used to populate a new net::CachingCertVerifier with | |
| 19 // |DeserializeCertVerifierCache()|. | |
| 20 cronet_pb::CertVerificationCache SerializeCertVerifierCache( | |
| 21 const net::CachingCertVerifier& verifier); | |
| 22 | |
| 23 // Populates |verifier|'s cache. Returns true if the |cert_cache| is | |
| 24 // deserialized correctly. | |
| 25 bool DeserializeCertVerifierCache( | |
| 26 const cronet_pb::CertVerificationCache& cert_cache, | |
| 27 net::CachingCertVerifier* verifier); | |
| 28 | |
| 29 } // namespace cronet | |
| 30 | |
| 31 #endif // COMPONENTS_CRONET_CERT_CERT_VERIFIER_CACHE_PERSISTER_H_ | |
| OLD | NEW |