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

Unified Diff: net/http/http_cache_transaction.h

Issue 12086021: Allow automatic use of stale cache entries if site is unreachable. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed redirect behavior. Created 7 years, 11 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
« no previous file with comments | « net/base/load_flags_list.h ('k') | net/http/http_cache_transaction.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/http_cache_transaction.h
diff --git a/net/http/http_cache_transaction.h b/net/http/http_cache_transaction.h
index bd5a46fa86e4913dc67523c361926af9b7d05d0f..785b4b78e69b639b1d1ba4f17b1056a9a6ba2662 100644
--- a/net/http/http_cache_transaction.h
+++ b/net/http/http_cache_transaction.h
@@ -9,6 +9,7 @@
#define NET_HTTP_HTTP_CACHE_TRANSACTION_H_
#include <string>
+#include <vector>
#include "base/time.h"
#include "net/base/completion_callback.h"
@@ -379,6 +380,10 @@ class HttpCache::Transaction : public HttpTransaction {
void RunDelayedLoop(base::TimeTicks delay_start_time,
base::TimeDelta intended_delay, int result);
+#if !defined(NDEBUG)
+ void DumpStatePath();
+#endif
+
State next_state_;
const HttpRequestInfo* request_;
BoundNetLog net_log_;
@@ -408,6 +413,7 @@ class HttpCache::Transaction : public HttpTransaction {
bool cache_pending_; // We are waiting for the HttpCache.
bool done_reading_;
bool vary_mismatch_; // The request doesn't match the stored vary data.
+ bool couldnt_conditionalize_request_;
scoped_refptr<IOBuffer> read_buf_;
int io_buf_len_;
int read_offset_;
@@ -442,6 +448,11 @@ class HttpCache::Transaction : public HttpTransaction {
int sensitivity_analysis_percent_increase_;
HttpTransactionDelegate* transaction_delegate_;
+
+#if !defined(NDEBUG)
+ // Record of all states this transaction has moved through.
+ std::vector<int> state_path_;
+#endif
};
} // namespace net
« no previous file with comments | « net/base/load_flags_list.h ('k') | net/http/http_cache_transaction.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698