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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
79 // Server responses. | 79 // Server responses. |
80 | 80 |
81 // The server indicates that the operation has failed (generic). | 81 // The server indicates that the operation has failed (generic). |
82 // "Server Error". | 82 // "Server Error". |
83 INTERRUPT_REASON(SERVER_FAILED, 30) | 83 INTERRUPT_REASON(SERVER_FAILED, 30) |
84 | 84 |
85 // The server does not support range requests. | 85 // The server does not support range requests. |
86 // Internal use only: must restart from the beginning. | 86 // Internal use only: must restart from the beginning. |
87 INTERRUPT_REASON(SERVER_NO_RANGE, 31) | 87 INTERRUPT_REASON(SERVER_NO_RANGE, 31) |
88 | 88 |
89 // The download request does not meet the specified precondition. | |
90 // Internal use only: the file has changed on the server. | |
91 INTERRUPT_REASON(SERVER_PRECONDITION, 32) | |
92 | |
Randy Smith (Not in Mondays)
2015/11/21 15:40:03
I'd leave a comment here just so it's clear the ho
asanka
2015/11/23 16:42:48
Done.
| |
93 // The server does not have the requested data. | 89 // The server does not have the requested data. |
94 // "Unable to get file". | 90 // "Unable to get file". |
95 INTERRUPT_REASON(SERVER_BAD_CONTENT, 33) | 91 INTERRUPT_REASON(SERVER_BAD_CONTENT, 33) |
96 | 92 |
97 // Server didn't authorize access to resource. | 93 // Server didn't authorize access to resource. |
98 INTERRUPT_REASON(SERVER_UNAUTHORIZED, 34) | 94 INTERRUPT_REASON(SERVER_UNAUTHORIZED, 34) |
99 | 95 |
100 // Server certificate problem. | 96 // Server certificate problem. |
101 INTERRUPT_REASON(SERVER_CERT_PROBLEM, 35) | 97 INTERRUPT_REASON(SERVER_CERT_PROBLEM, 35) |
102 | 98 |
103 // Server access forbidden. | 99 // Server access forbidden. |
104 INTERRUPT_REASON(SERVER_FORBIDDEN, 36) | 100 INTERRUPT_REASON(SERVER_FORBIDDEN, 36) |
105 | 101 |
106 // User input. | 102 // User input. |
107 | 103 |
108 // The user canceled the download. | 104 // The user canceled the download. |
109 // "Canceled". | 105 // "Canceled". |
110 INTERRUPT_REASON(USER_CANCELED, 40) | 106 INTERRUPT_REASON(USER_CANCELED, 40) |
111 | 107 |
112 // The user shut down the browser. | 108 // The user shut down the browser. |
113 // Internal use only: resume pending downloads if possible. | 109 // Internal use only: resume pending downloads if possible. |
114 INTERRUPT_REASON(USER_SHUTDOWN, 41) | 110 INTERRUPT_REASON(USER_SHUTDOWN, 41) |
115 | 111 |
116 | 112 |
117 // Crash. | 113 // Crash. |
118 | 114 |
119 // The browser crashed. | 115 // The browser crashed. |
120 // Internal use only: resume pending downloads if possible. | 116 // Internal use only: resume pending downloads if possible. |
121 INTERRUPT_REASON(CRASH, 50) | 117 INTERRUPT_REASON(CRASH, 50) |
OLD | NEW |