Index: net/http/http_response_headers.h |
diff --git a/net/http/http_response_headers.h b/net/http/http_response_headers.h |
index 167980df25c976bbfcfdc8a013154fa78d1cf8ca..d5392b3115f70b6c9c6c4d654a4f12a7fb05f996 100644 |
--- a/net/http/http_response_headers.h |
+++ b/net/http/http_response_headers.h |
@@ -32,12 +32,6 @@ namespace net { |
class HttpByteRange; |
class NetLogCaptureMode; |
-enum ValidationType { |
- VALIDATION_NONE, // The resource is fresh. |
- VALIDATION_ASYNCHRONOUS, // The resource requires async revalidation. |
- VALIDATION_SYNCHRONOUS // The resource requires sync revalidation. |
-}; |
- |
// HttpResponseHeaders: parses and holds HTTP response headers. |
class NET_EXPORT HttpResponseHeaders |
: public base::RefCountedThreadSafe<HttpResponseHeaders> { |
@@ -56,9 +50,6 @@ class NET_EXPORT HttpResponseHeaders |
struct FreshnessLifetimes { |
// How long the resource will be fresh for. |
base::TimeDelta freshness; |
- // How long after becoming not fresh that the resource will be stale but |
- // usable (if async revalidation is enabled). |
- base::TimeDelta staleness; |
}; |
static const char kContentRange[]; |
@@ -210,24 +201,21 @@ class NET_EXPORT HttpResponseHeaders |
// redirect. |
static bool IsRedirectResponseCode(int response_code); |
- // Returns VALIDATION_NONE if the response can be reused without |
- // validation. VALIDATION_ASYNCHRONOUS means the response can be re-used, but |
- // asynchronous revalidation must be performed. VALIDATION_SYNCHRONOUS means |
+ // Returns false if the response can be reused without validation. true means |
// that the result cannot be reused without revalidation. |
// The result is relative to the current_time parameter, which is |
// a parameter to support unit testing. The request_time parameter indicates |
// the time at which the request was made that resulted in this response, |
// which was received at response_time. |
- ValidationType RequiresValidation(const base::Time& request_time, |
- const base::Time& response_time, |
- const base::Time& current_time) const; |
+ bool RequiresValidation(const base::Time& request_time, |
+ const base::Time& response_time, |
+ const base::Time& current_time) const; |
// Calculates the amount of time the server claims the response is fresh from |
// the time the response was generated. See section 13.2.4 of RFC 2616. See |
// RequiresValidation for a description of the response_time parameter. See |
// the definition of FreshnessLifetimes above for the meaning of the return |
- // value. See RFC 5861 section 3 for the definition of |
- // stale-while-revalidate. |
+ // value. |
FreshnessLifetimes GetFreshnessLifetimes( |
const base::Time& response_time) const; |
@@ -245,7 +233,6 @@ 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; |
// 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. |