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

Unified Diff: net/http/http_response_info.cc

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.cc
diff --git a/net/http/http_response_info.cc b/net/http/http_response_info.cc
index 9c33ab4f53e8b0bef1ef03cb6c82cf16f7b6152a..ca95a0aef8d3cd5837d6e75e42220aea35427258 100644
--- a/net/http/http_response_info.cc
+++ b/net/http/http_response_info.cc
@@ -87,6 +87,7 @@ enum {
HttpResponseInfo::HttpResponseInfo()
: was_cached(false),
+ server_data_unavailable(false),
was_fetched_via_spdy(false),
was_npn_negotiated(false),
was_fetched_via_proxy(false) {
@@ -94,6 +95,7 @@ HttpResponseInfo::HttpResponseInfo()
HttpResponseInfo::HttpResponseInfo(const HttpResponseInfo& rhs)
: was_cached(rhs.was_cached),
+ server_data_unavailable(rhs.server_data_unavailable),
was_fetched_via_spdy(rhs.was_fetched_via_spdy),
was_npn_negotiated(rhs.was_npn_negotiated),
was_fetched_via_proxy(rhs.was_fetched_via_proxy),
@@ -114,6 +116,7 @@ HttpResponseInfo::~HttpResponseInfo() {
HttpResponseInfo& HttpResponseInfo::operator=(const HttpResponseInfo& rhs) {
was_cached = rhs.was_cached;
+ server_data_unavailable = rhs.server_data_unavailable;
was_fetched_via_spdy = rhs.was_fetched_via_spdy;
was_npn_negotiated = rhs.was_npn_negotiated;
was_fetched_via_proxy = rhs.was_fetched_via_proxy;

Powered by Google App Engine
This is Rietveld 408576698