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

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: 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.cc
diff --git a/net/http/http_response_info.cc b/net/http/http_response_info.cc
index 37677602a55e49f0dda309c92b8aa7afe5998676..e3dc9568379a7c986e0f826e6e4b8422b32f609e 100644
--- a/net/http/http_response_info.cc
+++ b/net/http/http_response_info.cc
@@ -90,6 +90,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),
@@ -98,6 +99,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),
@@ -119,6 +121,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