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 | 5 |
| 6 // File errors. | 6 // File errors. |
| 7 | 7 |
| 8 // Generic file operation failure. | 8 // Generic file operation failure. |
| 9 // "File Error". | 9 // "File Error". |
| 10 INTERRUPT_REASON(FILE_FAILED, 1) | 10 INTERRUPT_REASON(FILE_FAILED, 1) |
| (...skipping 26 matching lines...) Expand all Loading... | |
| 37 INTERRUPT_REASON(FILE_TRANSIENT_ERROR, 10) | 37 INTERRUPT_REASON(FILE_TRANSIENT_ERROR, 10) |
| 38 | 38 |
| 39 // The file was blocked due to local policy. | 39 // The file was blocked due to local policy. |
| 40 // "Blocked" | 40 // "Blocked" |
| 41 INTERRUPT_REASON(FILE_BLOCKED, 11) | 41 INTERRUPT_REASON(FILE_BLOCKED, 11) |
| 42 | 42 |
| 43 // An attempt to check the safety of the download failed due to unexpected | 43 // An attempt to check the safety of the download failed due to unexpected |
| 44 // reasons. See http://crbug.com/153212. | 44 // reasons. See http://crbug.com/153212. |
| 45 INTERRUPT_REASON(FILE_SECURITY_CHECK_FAILED, 12) | 45 INTERRUPT_REASON(FILE_SECURITY_CHECK_FAILED, 12) |
| 46 | 46 |
| 47 // An attempt was made to seek past the end of a file in constructing a | |
|
benjhayden
2013/01/06 15:46:04
Why would we seek at all while constructing a new
Randy Smith (Not in Mondays)
2013/01/07 20:54:10
Good point; poor wording. It's constructing a new
| |
| 48 // new file (as part of resuming a previously interrupted download). | |
| 49 INTERRUPT_REASON(FILE_TOO_SHORT, 13) | |
| 50 | |
| 47 // Network errors. | 51 // Network errors. |
| 48 | 52 |
| 49 // Generic network failure. | 53 // Generic network failure. |
| 50 // "Network Error". | 54 // "Network Error". |
| 51 INTERRUPT_REASON(NETWORK_FAILED, 20) | 55 INTERRUPT_REASON(NETWORK_FAILED, 20) |
| 52 | 56 |
| 53 // The network operation timed out. | 57 // The network operation timed out. |
| 54 // "Operation Timed Out". | 58 // "Operation Timed Out". |
| 55 INTERRUPT_REASON(NETWORK_TIMEOUT, 21) | 59 INTERRUPT_REASON(NETWORK_TIMEOUT, 21) |
| 56 | 60 |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 91 // The user shut down the browser. | 95 // The user shut down the browser. |
| 92 // Internal use only: resume pending downloads if possible. | 96 // Internal use only: resume pending downloads if possible. |
| 93 INTERRUPT_REASON(USER_SHUTDOWN, 41) | 97 INTERRUPT_REASON(USER_SHUTDOWN, 41) |
| 94 | 98 |
| 95 | 99 |
| 96 // Crash. | 100 // Crash. |
| 97 | 101 |
| 98 // The browser crashed. | 102 // The browser crashed. |
| 99 // Internal use only: resume pending downloads if possible. | 103 // Internal use only: resume pending downloads if possible. |
| 100 INTERRUPT_REASON(CRASH, 50) | 104 INTERRUPT_REASON(CRASH, 50) |
| OLD | NEW |