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

Unified Diff: net/http/http_cache_transaction.cc

Issue 22926031: Sparse IO: Allow failover to network in debug builds (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years, 4 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/disk_cache/simple/simple_entry_impl.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/http_cache_transaction.cc
diff --git a/net/http/http_cache_transaction.cc b/net/http/http_cache_transaction.cc
index cd3be51cb85e011beb11c1b85b7c9257d136d922..123a21763c117d92a9e23219117b0e7881981cf2 100644
--- a/net/http/http_cache_transaction.cc
+++ b/net/http/http_cache_transaction.cc
@@ -1530,6 +1530,11 @@ int HttpCache::Transaction::DoCacheQueryData() {
}
int HttpCache::Transaction::DoCacheQueryDataComplete(int result) {
+ if (result == ERR_NOT_IMPLEMENTED) {
+ // Send the network request if the backend does not support caching ranges.
gavinp 2013/08/26 15:46:37 Should we add a TODO here for after the simple cac
pasko 2013/08/27 17:22:13 Done.
+ next_state_ = STATE_SEND_REQUEST;
rvargas (doing something else) 2013/08/26 21:24:52 This is most likely not enough. It basically means
pasko 2013/08/27 17:22:13 Thanks! Doing DoRestartPartialRequest() is indeed
+ return OK;
+ }
DCHECK_EQ(OK, result);
if (!cache_.get())
return ERR_UNEXPECTED;
« no previous file with comments | « net/disk_cache/simple/simple_entry_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698