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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 INTERRUPT_REASON(FILE_BLOCKED, 11) | 44 INTERRUPT_REASON(FILE_BLOCKED, 11) |
45 | 45 |
46 // An attempt to check the safety of the download failed due to unexpected | 46 // An attempt to check the safety of the download failed due to unexpected |
47 // reasons. See http://crbug.com/153212. | 47 // reasons. See http://crbug.com/153212. |
48 INTERRUPT_REASON(FILE_SECURITY_CHECK_FAILED, 12) | 48 INTERRUPT_REASON(FILE_SECURITY_CHECK_FAILED, 12) |
49 | 49 |
50 // An attempt was made to seek past the end of a file in opening | 50 // An attempt was made to seek past the end of a file in opening |
51 // a file (as part of resuming a previously interrupted download). | 51 // a file (as part of resuming a previously interrupted download). |
52 INTERRUPT_REASON(FILE_TOO_SHORT, 13) | 52 INTERRUPT_REASON(FILE_TOO_SHORT, 13) |
53 | 53 |
| 54 // The partial file didn't match the expected hash. |
| 55 INTERRUPT_REASON(FILE_HASH_MISMATCH, 14) |
| 56 |
54 // Network errors. | 57 // Network errors. |
55 | 58 |
56 // Generic network failure. | 59 // Generic network failure. |
57 // "Network Error". | 60 // "Network Error". |
58 INTERRUPT_REASON(NETWORK_FAILED, 20) | 61 INTERRUPT_REASON(NETWORK_FAILED, 20) |
59 | 62 |
60 // The network operation timed out. | 63 // The network operation timed out. |
61 // "Operation Timed Out". | 64 // "Operation Timed Out". |
62 INTERRUPT_REASON(NETWORK_TIMEOUT, 21) | 65 INTERRUPT_REASON(NETWORK_TIMEOUT, 21) |
63 | 66 |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
119 // The user shut down the browser. | 122 // The user shut down the browser. |
120 // Internal use only: resume pending downloads if possible. | 123 // Internal use only: resume pending downloads if possible. |
121 INTERRUPT_REASON(USER_SHUTDOWN, 41) | 124 INTERRUPT_REASON(USER_SHUTDOWN, 41) |
122 | 125 |
123 | 126 |
124 // Crash. | 127 // Crash. |
125 | 128 |
126 // The browser crashed. | 129 // The browser crashed. |
127 // Internal use only: resume pending downloads if possible. | 130 // Internal use only: resume pending downloads if possible. |
128 INTERRUPT_REASON(CRASH, 50) | 131 INTERRUPT_REASON(CRASH, 50) |
OLD | NEW |