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

Unified Diff: net/http/http_request_info.h

Issue 137493008: Retry HttpNetworkTransactions upon receipt of ERR_NETWORK_CHANGED during host resolution and … Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Flush task queue before restart Created 6 years, 11 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_request_info.h
diff --git a/net/http/http_request_info.h b/net/http/http_request_info.h
index a587a421b5854d1d3405aeb359d03d4e4af495d7..348cf257addc53785fe5b5b198d0c44538d8fe84 100644
--- a/net/http/http_request_info.h
+++ b/net/http/http_request_info.h
@@ -52,6 +52,12 @@ struct NET_EXPORT HttpRequestInfo {
// If enabled, then request must be sent over connection that cannot be
// tracked by the server (e.g. without channel id).
PrivacyMode privacy_mode;
+
+ // How many times to automatically retry request when request fails with
+ // ERR_NETWORK_CHANGED. Retrying is only attempted when ERR_NETWORK_CHANGED
+ // is received during host resolution or connecting (i.e. before the request
+ // has been issued). This ensures request side-effects are never duplicated.
+ int max_automatic_retries_on_network_changes_;
};
} // namespace net

Powered by Google App Engine
This is Rietveld 408576698