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

Unified Diff: net/http/http_response_headers.h

Issue 391763002: Initial implementation of Chrome-Freshness header. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rename header and move GetStaleWhileRevalidateValue Created 6 years, 5 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
Index: net/http/http_response_headers.h
diff --git a/net/http/http_response_headers.h b/net/http/http_response_headers.h
index 2d306c95ca048aaa4dad94528c2f87a819c11d5d..115ad10071f72fb504b32784816ad38b87b2e5a2 100644
--- a/net/http/http_response_headers.h
+++ b/net/http/http_response_headers.h
@@ -229,6 +229,10 @@ class NET_EXPORT HttpResponseHeaders
bool GetDateValue(base::Time* value) const;
bool GetLastModifiedValue(base::Time* value) const;
bool GetExpiresValue(base::Time* value) const;
+ bool GetStaleWhileRevalidateValue(base::TimeDelta* value) const;
+
+ bool GetCacheControlDirective(const base::StringPiece& directive,
rvargas (doing something else) 2014/07/28 19:24:01 If we keep this declaration here we need documenta
Adam Rice 2014/07/29 17:04:45 I originally had it public just because there are
+ base::TimeDelta* result) const;
// Extracts the time value of a particular header. This method looks for the
// first matching header value and parses its value as a HTTP-date.

Powered by Google App Engine
This is Rietveld 408576698