Chromium Code Reviews| Index: net/http/http_cache_transaction.h |
| diff --git a/net/http/http_cache_transaction.h b/net/http/http_cache_transaction.h |
| index 8ba8f676cdefee3fa6e859a5211901a033d64cc4..66cd7c436ae8102029a5136ef1e331c381d8cd0a 100644 |
| --- a/net/http/http_cache_transaction.h |
| +++ b/net/http/http_cache_transaction.h |
| @@ -16,6 +16,7 @@ |
| #include "net/base/request_priority.h" |
| #include "net/http/http_cache.h" |
| #include "net/http/http_request_headers.h" |
| +#include "net/http/http_response_headers.h" |
| #include "net/http/http_response_info.h" |
| #include "net/http/http_transaction.h" |
| @@ -311,8 +312,9 @@ class HttpCache::Transaction : public HttpTransaction { |
| // Returns network error code. |
| int RestartNetworkRequestWithAuth(const AuthCredentials& credentials); |
| - // Called to determine if we need to validate the cache entry before using it. |
| - bool RequiresValidation(); |
| + // Called to determine if we need to validate the cache entry before using it, |
| + // and whether the validation should be synchronous or asynchronous. |
| + HttpResponseHeaders::ValidationType RequiresValidation(); |
| // Called to make the request conditional (to ask the server if the cached |
| // copy is valid). Returns true if able to make the request conditional. |
| @@ -329,6 +331,9 @@ class HttpCache::Transaction : public HttpTransaction { |
| // Removes content-length and byte range related info if needed. |
| void FixHeadersForHead(); |
| + // Launch an asynchronous revalidation based on this transaction. |
|
yhirano
2014/08/26 07:52:02
s/Launch/Launches/
Adam Rice
2014/08/26 13:38:42
Done.
|
| + void TriggerAsyncValidation(); |
| + |
| // Changes the response code of a range request to be 416 (Requested range not |
| // satisfiable). |
| void FailRangeRequest(); |