| OLD | NEW |
| 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 Loading... |
| 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__ |
| OLD | NEW |