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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 INTERRUPT_REASON(SERVER_NO_RANGE, 31) | 88 INTERRUPT_REASON(SERVER_NO_RANGE, 31) |
89 | 89 |
90 // The download request does not meet the specified precondition. | 90 // The download request does not meet the specified precondition. |
91 // Internal use only: the file has changed on the server. | 91 // Internal use only: the file has changed on the server. |
92 INTERRUPT_REASON(SERVER_PRECONDITION, 32) | 92 INTERRUPT_REASON(SERVER_PRECONDITION, 32) |
93 | 93 |
94 // The server does not have the requested data. | 94 // The server does not have the requested data. |
95 // "Unable to get file". | 95 // "Unable to get file". |
96 INTERRUPT_REASON(SERVER_BAD_CONTENT, 33) | 96 INTERRUPT_REASON(SERVER_BAD_CONTENT, 33) |
97 | 97 |
| 98 // Server didn't authorize access to resource. |
| 99 INTERRUPT_REASON(SERVER_UNAUTHORIZED, 34) |
| 100 |
| 101 // Server certificate problem. |
| 102 INTERRUPT_REASON(SERVER_CERT_PROBLEM, 35) |
98 | 103 |
99 // User input. | 104 // User input. |
100 | 105 |
101 // The user canceled the download. | 106 // The user canceled the download. |
102 // "Canceled". | 107 // "Canceled". |
103 INTERRUPT_REASON(USER_CANCELED, 40) | 108 INTERRUPT_REASON(USER_CANCELED, 40) |
104 | 109 |
105 // The user shut down the browser. | 110 // The user shut down the browser. |
106 // Internal use only: resume pending downloads if possible. | 111 // Internal use only: resume pending downloads if possible. |
107 INTERRUPT_REASON(USER_SHUTDOWN, 41) | 112 INTERRUPT_REASON(USER_SHUTDOWN, 41) |
108 | 113 |
109 | 114 |
110 // Crash. | 115 // Crash. |
111 | 116 |
112 // The browser crashed. | 117 // The browser crashed. |
113 // Internal use only: resume pending downloads if possible. | 118 // Internal use only: resume pending downloads if possible. |
114 INTERRUPT_REASON(CRASH, 50) | 119 INTERRUPT_REASON(CRASH, 50) |
OLD | NEW |