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

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: Fixed net-internals test. 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 c150e82ab40859d3f16fae26ab92580c17b952dd..06f0353d2e9ce1ba247822187f5fda6149a1a29f 100644
--- a/net/http/http_response_info.h
+++ b/net/http/http_response_info.h
@@ -59,6 +59,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