Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(12)

Side by Side Diff: components/cronet/android/cert/cert_verifier_cache_serializer.h

Issue 2021433004: Cert - protobufs to serialize and deserialize CertVerifierCache. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@Add_support_for_walking_1999733002
Patch Set: Fix comments Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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_ANDROID_CERT_CERT_VERIFIER_CACHE_SERIALIZER_H_
6 #define COMPONENTS_CRONET_ANDROID_CERT_CERT_VERIFIER_CACHE_SERIALIZER_H_
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_ANDROID_CERT_CERT_VERIFIER_CACHE_SERIALIZER_H_
OLDNEW
« no previous file with comments | « components/cronet/android/BUILD.gn ('k') | components/cronet/android/cert/cert_verifier_cache_serializer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698