OLD | NEW |
---|---|
(Empty) | |
1 // Copyright (c) 2016 The Chromium Authors. All rights reserved. | |
Alexei Svitkine (slow)
2016/06/09 21:46:31
Nit: No (c) for new files.
ramant (doing other things)
2016/06/10 06:13:52
Done.
| |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 // CertVerifierCachePersister provides API calls to serialize and deserialize | |
6 // CachingCertVerifier's cache. | |
Ryan Sleevi
2016/06/09 22:38:42
This comment is out of date
ramant (doing other things)
2016/06/10 06:13:52
thanks. Deleted it.
| |
7 // | |
8 // WARNING: This is experimental code, please don't use it. | |
Alexei Svitkine (slow)
2016/06/09 21:46:31
This is a strange comment.
What does it mean not
Ryan Sleevi
2016/06/09 22:38:42
+1 to crbug with more details. The context is this
ramant (doing other things)
2016/06/10 06:13:52
Added a TODO to move it. Will do in the next CL.
ramant (doing other things)
2016/06/10 06:13:52
Added a crbug.
Done.
| |
9 | |
10 #ifndef NET_EXTRAS_CERT_CERT_VERIFIER_CACHE_PERSISTER_H_ | |
11 #define NET_EXTRAS_CERT_CERT_VERIFIER_CACHE_PERSISTER_H_ | |
12 | |
13 #include <string> | |
14 | |
15 #include "base/macros.h" | |
16 #include "net/base/net_export.h" | |
17 #include "net/extras/cert/proto/cert_verification.pb.h" | |
18 | |
19 namespace net { | |
20 | |
21 class CachingCertVerifier; | |
22 | |
23 // Iterates through |verifier|'s cache and returns serialized data. This can be | |
24 // used to populate a new CachingCertVerifier with | |
25 // |DeserializeCertVerifierCache()|. | |
26 NET_EXPORT_PRIVATE CertVerificationCache | |
Ryan Sleevi
2016/06/09 22:38:42
Is NET_EXPORT_PRIVATE the right API, if you're pla
Ryan Sleevi
2016/06/09 22:38:42
Naming wise, this seems like a non-ideal name for
ramant (doing other things)
2016/06/10 06:13:52
Done.
ramant (doing other things)
2016/06/10 06:13:52
Will change it when we move this code to cronet.
Ryan Sleevi
2016/06/10 07:57:57
I'll follow-up in person with you tomorrow to unde
| |
27 SerializeCertVerifierCache(const CachingCertVerifier& verifier); | |
28 | |
29 // Populates |verifier|'s cache. Returns true if the |proto_cert_cache| is | |
Ryan Sleevi
2016/06/09 22:38:42
Naming: Here, naming the variable after the type i
ramant (doing other things)
2016/06/10 06:13:52
Done.
| |
30 // deserialized correctly. | |
31 NET_EXPORT_PRIVATE bool DeserializeCertVerifierCache( | |
32 const CertVerificationCache& proto_cert_cache, | |
33 CachingCertVerifier* verifier); | |
34 | |
35 } // namespace net | |
36 | |
37 #endif // NET_EXTRAS_CERT_CERT_VERIFIER_CACHE_PERSISTER_H_ | |
OLD | NEW |