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

Unified Diff: net/cert/cert_verify_result.h

Issue 1745283002: Pickle (serialize and deserialize) MultiThreadedCertVerifier's |cache_| (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: net/cert/cert_verify_result.h
diff --git a/net/cert/cert_verify_result.h b/net/cert/cert_verify_result.h
index 1cfb8fa51b3aa3655905cdc1f6e9a3292b9e07a7..0160ba7dae833b272c8481fb202ddb8ad052c4df 100644
--- a/net/cert/cert_verify_result.h
+++ b/net/cert/cert_verify_result.h
@@ -8,6 +8,7 @@
#include <vector>
#include "base/memory/ref_counted.h"
+#include "base/pickle.h"
#include "net/base/net_export.h"
#include "net/cert/cert_status_flags.h"
#include "net/cert/x509_cert_types.h"
@@ -23,6 +24,16 @@ class NET_EXPORT CertVerifyResult {
CertVerifyResult(const CertVerifyResult& other);
~CertVerifyResult();
+ // Appends a representation of this object to the given pickle.
+ bool Persist(base::Pickle* pickle) const;
+
+ // Create an CertVerifyResult from the representation stored in the given
+ // pickle. The data for this object is found relative to the given
+ // pickle_iter, which should be passed to the pickle's various Read* methods.
+ // Returns false on failure.
+ static bool CreateFromPickle(base::PickleIterator* iter,
+ CertVerifyResult* result);
Ryan Sleevi 2016/02/29 23:28:41 I'm strongly opposed to adding pickling methods 1
+
void Reset();
// Copies from |other| to |this|.

Powered by Google App Engine
This is Rietveld 408576698