summaryrefslogtreecommitdiffstats
path: root/net/http/http_response_info.h
diff options
context:
space:
mode:
authormichaeln@google.com <michaeln@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-08 01:14:44 +0000
committermichaeln@google.com <michaeln@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-08 01:14:44 +0000
commit0a0fd01fcb4e8a7562df3970e5e3c6932ddb7d81 (patch)
treee981102c92e154687c4888b588db12ed5b157d21 /net/http/http_response_info.h
parentaca93f29bcb36a07157714ddf127d13fafc803a7 (diff)
downloadchromium_src-0a0fd01fcb4e8a7562df3970e5e3c6932ddb7d81.zip
chromium_src-0a0fd01fcb4e8a7562df3970e5e3c6932ddb7d81.tar.gz
chromium_src-0a0fd01fcb4e8a7562df3970e5e3c6932ddb7d81.tar.bz2
Make HttpResponseInfo pickle'able, just moves some code from HttpCache to HttpResponseInfo.
TEST=none BUG=none Review URL: http://codereview.chromium.org/269012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@28363 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/http/http_response_info.h')
-rw-r--r--net/http/http_response_info.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/net/http/http_response_info.h b/net/http/http_response_info.h
index ef6343b..432ad87 100644
--- a/net/http/http_response_info.h
+++ b/net/http/http_response_info.h
@@ -12,6 +12,8 @@
#include "net/http/http_response_headers.h"
#include "net/http/http_vary_data.h"
+class Pickle;
+
namespace net {
class HttpResponseInfo {
@@ -55,6 +57,14 @@ class HttpResponseInfo {
// The "Vary" header data for this response.
HttpVaryData vary_data;
+
+ // Initializes from the representation stored in the given pickle.
+ bool InitFromPickle(const Pickle& pickle, bool* response_truncated);
+
+ // Call this method to persist the response info.
+ void Persist(Pickle* pickle,
+ bool skip_transient_headers,
+ bool response_truncated) const;
};
} // namespace net