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

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: Moved new flag to nearer other flags in same file. 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
Index: net/http/http_cache_transaction.h
diff --git a/net/http/http_cache_transaction.h b/net/http/http_cache_transaction.h
index ef6ae12150e5f1d35b382af2c691200de8ad7cfb..071b4862c79812fce44f876420aee68394a2dcbe 100644
--- a/net/http/http_cache_transaction.h
+++ b/net/http/http_cache_transaction.h
@@ -310,6 +310,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);
@@ -413,6 +416,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_;

Powered by Google App Engine
This is Rietveld 408576698