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

Side by Side Diff: components/cronet/cert/cert_verifier_cache_persister.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: Rebase TOT Created 4 years, 6 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_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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698