OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 // This file contains the list of network errors. | 5 // This file contains the list of network errors. |
6 | 6 |
7 // An asynchronous IO operation is not yet complete. This usually does not | 7 // An asynchronous IO operation is not yet complete. This usually does not |
8 // indicate a fatal error. Typically this error will be generated as a | 8 // indicate a fatal error. Typically this error will be generated as a |
9 // notification to wait for some external notification that the IO operation | 9 // notification to wait for some external notification that the IO operation |
10 // finally completed. | 10 // finally completed. |
(...skipping 23 matching lines...) Expand all Loading... |
34 // An unexpected error. This may be caused by a programming mistake or an | 34 // An unexpected error. This may be caused by a programming mistake or an |
35 // invalid assumption. | 35 // invalid assumption. |
36 NET_ERROR(UNEXPECTED, -9) | 36 NET_ERROR(UNEXPECTED, -9) |
37 | 37 |
38 // Permission to access a resource was denied. | 38 // Permission to access a resource was denied. |
39 NET_ERROR(ACCESS_DENIED, -10) | 39 NET_ERROR(ACCESS_DENIED, -10) |
40 | 40 |
41 // The operation failed because of unimplemented functionality. | 41 // The operation failed because of unimplemented functionality. |
42 NET_ERROR(NOT_IMPLEMENTED, -11) | 42 NET_ERROR(NOT_IMPLEMENTED, -11) |
43 | 43 |
| 44 // There were not enough resources to complete the operation. |
| 45 NET_ERROR(INSUFFICIENT_RESOURCES, -12) |
| 46 |
44 // A connection was closed (corresponding to a TCP FIN). | 47 // A connection was closed (corresponding to a TCP FIN). |
45 NET_ERROR(CONNECTION_CLOSED, -100) | 48 NET_ERROR(CONNECTION_CLOSED, -100) |
46 | 49 |
47 // A connection was reset (corresponding to a TCP RST). | 50 // A connection was reset (corresponding to a TCP RST). |
48 NET_ERROR(CONNECTION_RESET, -101) | 51 NET_ERROR(CONNECTION_RESET, -101) |
49 | 52 |
50 // A connection attempt was refused. | 53 // A connection attempt was refused. |
51 NET_ERROR(CONNECTION_REFUSED, -102) | 54 NET_ERROR(CONNECTION_REFUSED, -102) |
52 | 55 |
53 // A connection timed out as a result of not receiving an ACK for data sent. | 56 // A connection timed out as a result of not receiving an ACK for data sent. |
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
223 | 226 |
224 // The PAC requested by HTTP did not have a valid status code (non-200). | 227 // The PAC requested by HTTP did not have a valid status code (non-200). |
225 NET_ERROR(PAC_STATUS_NOT_OK, -326) | 228 NET_ERROR(PAC_STATUS_NOT_OK, -326) |
226 | 229 |
227 // The cache does not have the requested entry. | 230 // The cache does not have the requested entry. |
228 NET_ERROR(CACHE_MISS, -400) | 231 NET_ERROR(CACHE_MISS, -400) |
229 | 232 |
230 // The server's response was insecure (e.g. there was a cert error). | 233 // The server's response was insecure (e.g. there was a cert error). |
231 NET_ERROR(INSECURE_RESPONSE, -501) | 234 NET_ERROR(INSECURE_RESPONSE, -501) |
232 | 235 |
OLD | NEW |