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

Unified Diff: net/http/http_cache_transaction.h

Issue 12310075: Cache failover to LOAD_PREFERRING_CACHE if network response suggests offline. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Incorporated comments. Created 7 years, 9 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 3285e71cc7a927aa629d95008bef46bc7026125e..a2b2f088c60f5a157ba5ebcd6d2ed46ed67fb45d 100644
--- a/net/http/http_cache_transaction.h
+++ b/net/http/http_cache_transaction.h
@@ -313,6 +313,9 @@ class HttpCache::Transaction : public HttpTransaction {
// satisfiable).
void FailRangeRequest();
+ // Setups the transaction for reading from the cache entry.
+ int SetupEntryForRead();
+
// Reads data from the network.
int ReadFromNetwork(IOBuffer* data, int data_len);
@@ -417,6 +420,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_;
« 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