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

Unified Diff: net/base/load_flags_list.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: Removed vestigial reference to new content flag. Created 7 years, 10 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 | « no previous file | net/http/http_cache_transaction.h » ('j') | net/http/http_cache_transaction.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/load_flags_list.h
diff --git a/net/base/load_flags_list.h b/net/base/load_flags_list.h
index 635ce7999f924666b1724b1027924b2229cc5d89..49c1077c1c9d28cacd96d18ca645450df8c55f72 100644
--- a/net/base/load_flags_list.h
+++ b/net/base/load_flags_list.h
@@ -114,3 +114,8 @@ LOAD_FLAG(DO_NOT_PROMPT_FOR_LOGIN, 1 << 25)
// explicit user action. This can be used as a hint to treat the
// request with higher priority.
LOAD_FLAG(MAYBE_USER_GESTURE, 1 << 26)
+
+// Indicate that if the request fails at the network level in a way that
+// indicates the source is unreachable, the request should fail over
+// to as if LOAD_PREFERRING_CACHE had been set.
+LOAD_FLAG(CACHE_RETURN_IF_OFFLINE, 1 << 27)
rvargas (doing something else) 2013/03/05 02:58:19 It would be nice if this were beside the other cac
rvargas (doing something else) 2013/03/05 02:58:19 FROM_CACHE_IF_OFFLINE?
Randy Smith (Not in Mondays) 2013/03/05 23:16:14 Agreed. I don't see a way around the problem, tho
Randy Smith (Not in Mondays) 2013/03/05 23:16:14 Done.
« no previous file with comments | « no previous file | net/http/http_cache_transaction.h » ('j') | net/http/http_cache_transaction.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698