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

Unified Diff: net/http/http_response_info.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_response_info.h
diff --git a/net/http/http_response_info.h b/net/http/http_response_info.h
index f5f1c2425d9250007a7237689110e6bace033d5c..65204f4e47e3c124b7225ea0bb5f5077d130c9d1 100644
--- a/net/http/http_response_info.h
+++ b/net/http/http_response_info.h
@@ -48,6 +48,11 @@ class NET_EXPORT HttpResponseInfo {
// when reloading previously visited pages (without going over the network).
bool was_cached;
+ // True if the request was fetched from cache rather than the network
+ // because of a LOAD_FROM_CACHE_IF_OFFLINE flag when the system
+ // was unable to contact the server.
+ bool server_data_unavailable;
+
// True if the request was fetched over a SPDY channel.
bool was_fetched_via_spdy;

Powered by Google App Engine
This is Rietveld 408576698