Chromium Code Reviews| 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 then the content-length header. It may indicate | |
| 120 // that the connection was closed prematurely, or it may indicate that the | |
| 121 // server sent an invalid Content-Length header. | |
| 122 INTERRUPT_REASON(SERVER_CONTENT_LENGTH_MISMATCH, 38) | |
|
David Trainor- moved to gerrit
2017/04/25 03:50:41
Am I understanding that we only interrupt when we
qinmin
2017/04/25 19:27:47
Done.
xingliu
2017/04/25 19:32:05
FYI: We might need to change some other files, I r
qinmin
2017/04/25 20:52:12
Done. There is a chrome/common/extensions/api/down
| |
| 123 | |
| 119 // User input. | 124 // User input. |
| 120 | 125 |
| 121 // The user canceled the download. | 126 // The user canceled the download. |
| 122 // "Canceled". | 127 // "Canceled". |
| 123 INTERRUPT_REASON(USER_CANCELED, 40) | 128 INTERRUPT_REASON(USER_CANCELED, 40) |
| 124 | 129 |
| 125 // The user shut down the browser. | 130 // The user shut down the browser. |
| 126 // Internal use only: resume pending downloads if possible. | 131 // Internal use only: resume pending downloads if possible. |
| 127 INTERRUPT_REASON(USER_SHUTDOWN, 41) | 132 INTERRUPT_REASON(USER_SHUTDOWN, 41) |
| 128 | 133 |
| 129 | 134 |
| 130 // Crash. | 135 // Crash. |
| 131 | 136 |
| 132 // The browser crashed. | 137 // The browser crashed. |
| 133 // Internal use only: resume pending downloads if possible. | 138 // Internal use only: resume pending downloads if possible. |
| 134 INTERRUPT_REASON(CRASH, 50) | 139 INTERRUPT_REASON(CRASH, 50) |
| OLD | NEW |