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

Unified Diff: net/http/http_cache_transaction.h

Issue 154243006: Add GetExpirationTimes() to HttpResponseHeader. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: move a function body Created 4 years, 8 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_cache_transaction.h
diff --git a/net/http/http_cache_transaction.h b/net/http/http_cache_transaction.h
index 0c9b11253543ac44c65986bdd743c45870c03972..1572ae73c20eda4270e8508ef4c24330b6ed45ef 100644
--- a/net/http/http_cache_transaction.h
+++ b/net/http/http_cache_transaction.h
@@ -46,6 +46,13 @@ class SSLPrivateKey;
// factory.
class HttpCache::Transaction : public HttpTransaction {
public:
+ // Used for |RequiresValidation()|.
+ enum class ValidationType {
+ NONE, // The resource is fresh.
+ ASYNCHRONOUS, // The resource requires async revalidation.
+ SYNCHRONOUS, // The resource requires sync revalidation.
+ };
+
// The transaction has the following modes, which apply to how it may access
// its cache entry.
//

Powered by Google App Engine
This is Rietveld 408576698