Chromium Code Reviews| 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|. |