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

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: Addressed first batch of bengr@'s comments Created 5 years 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
Index: net/http/http_response_headers.h
diff --git a/net/http/http_response_headers.h b/net/http/http_response_headers.h
index caab083b7270fd9931f39cc4563560d067c897cf..6f5e1afb634ccd057f940ac4daf0635e95ac4141 100644
--- a/net/http/http_response_headers.h
+++ b/net/http/http_response_headers.h
@@ -257,6 +257,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 if they are strong or weak. See section 13.3.3 of RFC
bengr 2016/02/21 21:08:05 regardless if they are -> regardless of whether it
jamartin 2016/02/22 16:49:43 Done.
+ // 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 GetContentLength() const;

Powered by Google App Engine
This is Rietveld 408576698