diff options
author | darin@chromium.org <darin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-24 18:20:06 +0000 |
---|---|---|
committer | darin@chromium.org <darin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-24 18:20:06 +0000 |
commit | 96bac982eb0d93f254c9f14e918fd0ed8199cd0c (patch) | |
tree | e785449a633d957b361f5c18a67b718b6fee0086 /net/http/http_request_info.h | |
parent | e483fab5431c144a5413b4d4e9abcce48d8cfa57 (diff) | |
download | chromium_src-96bac982eb0d93f254c9f14e918fd0ed8199cd0c.zip chromium_src-96bac982eb0d93f254c9f14e918fd0ed8199cd0c.tar.gz chromium_src-96bac982eb0d93f254c9f14e918fd0ed8199cd0c.tar.bz2 |
Net module changes to support caching responses to a POST request.
The solution is to add a user-defined identifier to UploadData. If that identifier is set, and if the request method is POST, then HttpCache will enable caching for the response. (The cache key will be a composition of the identifier and the URL.) A subsequent POST request to the same URL with the same identifier will "hit" the previously generated cache entry. Reuse from the cache is subject to all of the standard rules.
BUG=2636
R=wtc
Review URL: http://codereview.chromium.org/52028
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@12374 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/http/http_request_info.h')
-rw-r--r-- | net/http/http_request_info.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net/http/http_request_info.h b/net/http/http_request_info.h index 8a680b6..de817fa 100644 --- a/net/http/http_request_info.h +++ b/net/http/http_request_info.h @@ -13,6 +13,9 @@ namespace net { class HttpRequestInfo { public: + HttpRequestInfo() : load_flags(0) { + } + // The requested URL. GURL url; |