| Index: components/cronet/android/cert/cert_verifier_cache_serializer.h
|
| diff --git a/components/cronet/android/cert/cert_verifier_cache_serializer.h b/components/cronet/android/cert/cert_verifier_cache_serializer.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..42e4175200cd19311a253ce707a7b777096c5dc8
|
| --- /dev/null
|
| +++ b/components/cronet/android/cert/cert_verifier_cache_serializer.h
|
| @@ -0,0 +1,32 @@
|
| +// Copyright 2016 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef COMPONENTS_CRONET_ANDROID_CERT_CERT_VERIFIER_CACHE_SERIALIZER_H_
|
| +#define COMPONENTS_CRONET_ANDROID_CERT_CERT_VERIFIER_CACHE_SERIALIZER_H_
|
| +
|
| +namespace cronet_pb {
|
| +class CertVerificationCache;
|
| +} // namespace cronet_pb
|
| +
|
| +namespace net {
|
| +class CachingCertVerifier;
|
| +} // namespace net
|
| +
|
| +namespace cronet {
|
| +
|
| +// Iterates through |verifier|'s cache and returns serialized data. This can be
|
| +// used to populate a new net::CachingCertVerifier with
|
| +// |DeserializeCertVerifierCache()|.
|
| +cronet_pb::CertVerificationCache SerializeCertVerifierCache(
|
| + const net::CachingCertVerifier& verifier);
|
| +
|
| +// Populates |verifier|'s cache. Returns true if the |cert_cache| is
|
| +// deserialized correctly.
|
| +bool DeserializeCertVerifierCache(
|
| + const cronet_pb::CertVerificationCache& cert_cache,
|
| + net::CachingCertVerifier* verifier);
|
| +
|
| +} // namespace cronet
|
| +
|
| +#endif // COMPONENTS_CRONET_ANDROID_CERT_CERT_VERIFIER_CACHE_SERIALIZER_H_
|
|
|