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

Side by Side 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, 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef NET_HTTP_HTTP_REQUEST_INFO_H__ 5 #ifndef NET_HTTP_HTTP_REQUEST_INFO_H__
6 #define NET_HTTP_HTTP_REQUEST_INFO_H__ 6 #define NET_HTTP_HTTP_REQUEST_INFO_H__
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 45
46 // Any load flags (see load_flags.h). 46 // Any load flags (see load_flags.h).
47 int load_flags; 47 int load_flags;
48 48
49 // The motivation behind this request. 49 // The motivation behind this request.
50 RequestMotivation motivation; 50 RequestMotivation motivation;
51 51
52 // If enabled, then request must be sent over connection that cannot be 52 // If enabled, then request must be sent over connection that cannot be
53 // tracked by the server (e.g. without channel id). 53 // tracked by the server (e.g. without channel id).
54 PrivacyMode privacy_mode; 54 PrivacyMode privacy_mode;
55
56 // How many times to automatically retry request when request fails with
57 // ERR_NETWORK_CHANGED. Retrying is only attempted when ERR_NETWORK_CHANGED
58 // is received during host resolution or connecting (i.e. before the request
59 // has been issued). This ensures request side-effects are never duplicated.
60 int max_automatic_retries_on_network_changes_;
55 }; 61 };
56 62
57 } // namespace net 63 } // namespace net
58 64
59 #endif // NET_HTTP_HTTP_REQUEST_INFO_H__ 65 #endif // NET_HTTP_HTTP_REQUEST_INFO_H__
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698