diff options
author | agl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-12-27 17:47:54 +0000 |
---|---|---|
committer | agl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-12-27 17:47:54 +0000 |
commit | 18713e5dd919fd5536b3cd8b8fbe1e358743c76c (patch) | |
tree | 6d86969e2317b712968ac33e8add4a8ba44b6aac /net/base/crl_set.h | |
parent | ca17f37b19f3f4effe383610bb889bfbff7f42de (diff) | |
download | chromium_src-18713e5dd919fd5536b3cd8b8fbe1e358743c76c.zip chromium_src-18713e5dd919fd5536b3cd8b8fbe1e358743c76c.tar.gz chromium_src-18713e5dd919fd5536b3cd8b8fbe1e358743c76c.tar.bz2 |
net: add a Serialize method to CRLSet.
This allows us to download and apply a delta update to our current CRLSet and
then save the result to disk.
BUG=none
TEST=net_unittests
Review URL: http://codereview.chromium.org/8958006
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@115833 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/base/crl_set.h')
-rw-r--r-- | net/base/crl_set.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/net/base/crl_set.h b/net/base/crl_set.h index 586a264..f9f0cb8 100644 --- a/net/base/crl_set.h +++ b/net/base/crl_set.h @@ -51,6 +51,11 @@ class NET_EXPORT CRLSet : public base::RefCountedThreadSafe<CRLSet> { bool ApplyDelta(base::StringPiece delta_bytes, scoped_refptr<CRLSet>* out_crl_set); + // Serialize returns a string of bytes suitable for passing to Parse. Parsing + // and serializing a CRLSet is a lossless operation - the resulting bytes + // will be equal. + std::string Serialize() const; + // sequence returns the sequence number of this CRL set. CRL sets generated // by the same source are given strictly monotonically increasing sequence // numbers. |