Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(236)

Unified Diff: net/http/http_response_headers.h

Issue 1481143002: Added HttpUtils::HasValidators and HttpResponse::HasValidators (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Clarified the documentation Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/precache/core/precache_fetcher_unittest.cc ('k') | net/http/http_response_headers.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/http_response_headers.h
diff --git a/net/http/http_response_headers.h b/net/http/http_response_headers.h
index 8f227be16367299b1ae06607695439ac33f1729d..238acda1ad95ab996c04a74a31d58ece29562209 100644
--- a/net/http/http_response_headers.h
+++ b/net/http/http_response_headers.h
@@ -258,6 +258,11 @@ class NET_EXPORT HttpResponseHeaders
// See section 13.3.3 of RFC 2616.
bool HasStrongValidators() const;
+ // Returns true if this response has any validator (either a Last-Modified or
+ // an ETag) regardless of whether it is strong or weak. See section 13.3.3 of
+ // RFC 2616.
+ bool HasValidators() const;
+
// Extracts the value of the Content-Length header or returns -1 if there is
// no such header in the response.
int64_t GetContentLength() const;
« no previous file with comments | « components/precache/core/precache_fetcher_unittest.cc ('k') | net/http/http_response_headers.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698