| 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 // Note that the embedder is welcome to persist these values across | 5 // Note that the embedder is welcome to persist these values across |
| 6 // invocations of the browser, and possibly across browser versions. | 6 // invocations of the browser, and possibly across browser versions. |
| 7 // Thus individual errors may be deprecated and new errors added, but | 7 // Thus individual errors may be deprecated and new errors added, but |
| 8 // the values of particular errors should not be changed. | 8 // the values of particular errors should not be changed. |
| 9 | 9 |
| 10 // File errors. | 10 // File errors. |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 // Server certificate problem. | 109 // Server certificate problem. |
| 110 INTERRUPT_REASON(SERVER_CERT_PROBLEM, 35) | 110 INTERRUPT_REASON(SERVER_CERT_PROBLEM, 35) |
| 111 | 111 |
| 112 // Server access forbidden. | 112 // Server access forbidden. |
| 113 INTERRUPT_REASON(SERVER_FORBIDDEN, 36) | 113 INTERRUPT_REASON(SERVER_FORBIDDEN, 36) |
| 114 | 114 |
| 115 // Unexpected server response. This might indicate that the responding server | 115 // Unexpected server response. This might indicate that the responding server |
| 116 // may not be the intended server. | 116 // may not be the intended server. |
| 117 INTERRUPT_REASON(SERVER_UNREACHABLE, 37) | 117 INTERRUPT_REASON(SERVER_UNREACHABLE, 37) |
| 118 | 118 |
| 119 // The server sent fewer bytes than the content-length header. It may indicate |
| 120 // that the connection was closed prematurely, or the Content-Length header was |
| 121 // invalid. The download is only interrupted if strong validators are present. |
| 122 // Otherwise, it is treated as finished. |
| 123 INTERRUPT_REASON(SERVER_CONTENT_LENGTH_MISMATCH, 38) |
| 124 |
| 119 // User input. | 125 // User input. |
| 120 | 126 |
| 121 // The user canceled the download. | 127 // The user canceled the download. |
| 122 // "Canceled". | 128 // "Canceled". |
| 123 INTERRUPT_REASON(USER_CANCELED, 40) | 129 INTERRUPT_REASON(USER_CANCELED, 40) |
| 124 | 130 |
| 125 // The user shut down the browser. | 131 // The user shut down the browser. |
| 126 // Internal use only: resume pending downloads if possible. | 132 // Internal use only: resume pending downloads if possible. |
| 127 INTERRUPT_REASON(USER_SHUTDOWN, 41) | 133 INTERRUPT_REASON(USER_SHUTDOWN, 41) |
| 128 | 134 |
| 129 | 135 |
| 130 // Crash. | 136 // Crash. |
| 131 | 137 |
| 132 // The browser crashed. | 138 // The browser crashed. |
| 133 // Internal use only: resume pending downloads if possible. | 139 // Internal use only: resume pending downloads if possible. |
| 134 INTERRUPT_REASON(CRASH, 50) | 140 INTERRUPT_REASON(CRASH, 50) |
| OLD | NEW |