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

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: 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
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..661cd142c05dd25dc28e017fe2ed763ed676162e 100644
--- a/net/http/http_response_info.h
+++ b/net/http/http_response_info.h
@@ -59,6 +59,11 @@ class NET_EXPORT HttpResponseInfo {
// transparent proxy may have been involved.
bool was_fetched_via_proxy;
+ // True if the request was fetched from cache rather than the network
+ // because of a LOAD_PREFERRING_CACHE or LOAD_CACHE_RETURN_IF_OFFLINE
rvargas (doing something else) 2013/03/05 02:58:19 Why set a flag when the request is issued with LOA
Randy Smith (Not in Mondays) 2013/03/05 23:16:14 Well, that answers another question I asked you :-
+ // flag.
+ bool was_cache_override;
rvargas (doing something else) 2013/03/05 02:58:19 nit: move after was_cached, and maybe convey inste
Randy Smith (Not in Mondays) 2013/03/05 23:16:14 Done, though I phrased it as "was unable to contac
rvargas (doing something else) 2013/03/06 03:11:48 yes, I think it is better to change the name too.
Randy Smith (Not in Mondays) 2013/03/06 22:55:55 SG. I used "server_data_unavailable"; let me know
+
// Remote address of the socket which fetched this resource.
//
// NOTE: If the response was served from the cache (was_cached is true),

Powered by Google App Engine
This is Rietveld 408576698