diff options
author | fischman@chromium.org <fischman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-05-25 02:15:33 +0000 |
---|---|---|
committer | fischman@chromium.org <fischman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-05-25 02:15:33 +0000 |
commit | b314d4bc349fbf8e41e8a924f130757fb68a202c (patch) | |
tree | 9e2a1df530c634ca0732e55f5dc7c9aa3465e080 /net/http/http_util.h | |
parent | 99de53e244b78b4f6d9698c0855afa01773e94c1 (diff) | |
download | chromium_src-b314d4bc349fbf8e41e8a924f130757fb68a202c.zip chromium_src-b314d4bc349fbf8e41e8a924f130757fb68a202c.tar.gz chromium_src-b314d4bc349fbf8e41e8a924f130757fb68a202c.tar.bz2 |
Suppress pause-and-buffer behavior when the HTTP response won't satisfy future requests via cache.
BUG=123074
Review URL: https://chromiumcodereview.appspot.com/10387200
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@138972 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/http/http_util.h')
-rw-r--r-- | net/http/http_util.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/net/http/http_util.h b/net/http/http_util.h index 57aa0d0..0801382 100644 --- a/net/http/http_util.h +++ b/net/http/http_util.h @@ -14,6 +14,7 @@ #include "googleurl/src/gurl.h" #include "net/base/net_export.h" #include "net/http/http_byte_range.h" +#include "net/http/http_version.h" // This is a macro to support extending this string literal at compile time. // Please excuse me polluting your global namespace! @@ -187,6 +188,13 @@ class NET_EXPORT HttpUtil { const std::string& header_value, std::string* headers); + // Returns true if the parameters describe a response with a strong etag or + // last-modified header. See section 13.3.3 of RFC 2616. + static bool HasStrongValidators(HttpVersion version, + const std::string& etag_header, + const std::string& last_modified_header, + const std::string& date_header); + // Used to iterate over the name/value pairs of HTTP headers. To iterate // over the values in a multi-value header, use ValuesIterator. // See AssembleRawHeaders for joining line continuations (this iterator |