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

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: Created 5 years, 1 month 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..2e6c2cc407e6d19193197cd275e41de545ea2418 100644
--- a/net/http/http_response_headers.h
+++ b/net/http/http_response_headers.h
@@ -257,6 +257,10 @@ class NET_EXPORT HttpResponseHeaders
// See section 13.3.3 of RFC 2616.
bool HasStrongValidators() const;
+ // Returns true if this response has validators (either strong or weak). See
+ // section 13.3.3 of RFC 2616.
bengr 2015/12/03 17:42:21 I'd add that it returns true specifically when the
jamartin (wrong) 2015/12/08 16:58:18 Done.
+ 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