OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 intentionally does not have header guards, it's included | 5 // This file intentionally does not have header guards, it's included |
6 // inside a macro to generate enum. | 6 // inside a macro to generate enum. |
7 | 7 |
8 // This file contains the list of network errors. | 8 // This file contains the list of network errors. |
9 | 9 |
10 // | 10 // |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 // An operation timed out. | 43 // An operation timed out. |
44 NET_ERROR(TIMED_OUT, -7) | 44 NET_ERROR(TIMED_OUT, -7) |
45 | 45 |
46 // The file is too large. | 46 // The file is too large. |
47 NET_ERROR(FILE_TOO_BIG, -8) | 47 NET_ERROR(FILE_TOO_BIG, -8) |
48 | 48 |
49 // An unexpected error. This may be caused by a programming mistake or an | 49 // An unexpected error. This may be caused by a programming mistake or an |
50 // invalid assumption. | 50 // invalid assumption. |
51 NET_ERROR(UNEXPECTED, -9) | 51 NET_ERROR(UNEXPECTED, -9) |
52 | 52 |
53 // Permission to access a resource was denied. | 53 // Permission to access a resource, other than the network, was denied. |
54 NET_ERROR(ACCESS_DENIED, -10) | 54 NET_ERROR(ACCESS_DENIED, -10) |
55 | 55 |
56 // The operation failed because of unimplemented functionality. | 56 // The operation failed because of unimplemented functionality. |
57 NET_ERROR(NOT_IMPLEMENTED, -11) | 57 NET_ERROR(NOT_IMPLEMENTED, -11) |
58 | 58 |
59 // There were not enough resources to complete the operation. | 59 // There were not enough resources to complete the operation. |
60 NET_ERROR(INSUFFICIENT_RESOURCES, -12) | 60 NET_ERROR(INSUFFICIENT_RESOURCES, -12) |
61 | 61 |
62 // Memory allocation failed. | 62 // Memory allocation failed. |
63 NET_ERROR(OUT_OF_MEMORY, -13) | 63 NET_ERROR(OUT_OF_MEMORY, -13) |
64 | 64 |
65 // The file upload failed because the file's modification time was different | 65 // The file upload failed because the file's modification time was different |
66 // from the expectation. | 66 // from the expectation. |
67 NET_ERROR(UPLOAD_FILE_CHANGED, -14) | 67 NET_ERROR(UPLOAD_FILE_CHANGED, -14) |
68 | 68 |
69 // The socket is not connected | 69 // The socket is not connected. |
70 NET_ERROR(SOCKET_NOT_CONNECTED, -15) | 70 NET_ERROR(SOCKET_NOT_CONNECTED, -15) |
71 | 71 |
72 // A connection was closed (corresponding to a TCP FIN). | 72 // A connection was closed (corresponding to a TCP FIN). |
73 NET_ERROR(CONNECTION_CLOSED, -100) | 73 NET_ERROR(CONNECTION_CLOSED, -100) |
74 | 74 |
75 // A connection was reset (corresponding to a TCP RST). | 75 // A connection was reset (corresponding to a TCP RST). |
76 NET_ERROR(CONNECTION_RESET, -101) | 76 NET_ERROR(CONNECTION_RESET, -101) |
77 | 77 |
78 // A connection attempt was refused. | 78 // A connection attempt was refused. |
79 NET_ERROR(CONNECTION_REFUSED, -102) | 79 NET_ERROR(CONNECTION_REFUSED, -102) |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
201 | 201 |
202 // The SSL client certificate has no private key. | 202 // The SSL client certificate has no private key. |
203 NET_ERROR(SSL_CLIENT_AUTH_CERT_NO_PRIVATE_KEY, -135) | 203 NET_ERROR(SSL_CLIENT_AUTH_CERT_NO_PRIVATE_KEY, -135) |
204 | 204 |
205 // The certificate presented by the HTTPS Proxy was invalid. | 205 // The certificate presented by the HTTPS Proxy was invalid. |
206 NET_ERROR(PROXY_CERTIFICATE_INVALID, -136) | 206 NET_ERROR(PROXY_CERTIFICATE_INVALID, -136) |
207 | 207 |
208 // An error occurred when trying to do a name resolution (DNS). | 208 // An error occurred when trying to do a name resolution (DNS). |
209 NET_ERROR(NAME_RESOLUTION_FAILED, -137) | 209 NET_ERROR(NAME_RESOLUTION_FAILED, -137) |
210 | 210 |
| 211 // Permission to access the network was denied. This is used to distinguish |
| 212 // access denied errors that were most likely caused by a firewall. |
| 213 // See also ERR_ACCESS_DENIED. |
| 214 NET_ERROR(NETWORK_ACCESS_DENIED, -138) |
| 215 |
211 // Certificate error codes | 216 // Certificate error codes |
212 // | 217 // |
213 // The values of certificate error codes must be consecutive. | 218 // The values of certificate error codes must be consecutive. |
214 | 219 |
215 // The server responded with a certificate whose common name did not match | 220 // The server responded with a certificate whose common name did not match |
216 // the host name. This could mean: | 221 // the host name. This could mean: |
217 // | 222 // |
218 // 1. An attacker has redirected our traffic to his server and is | 223 // 1. An attacker has redirected our traffic to his server and is |
219 // presenting a certificate for which he knows the private key. | 224 // presenting a certificate for which he knows the private key. |
220 // | 225 // |
(...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
497 // Import failed - certificate already exists in database. | 502 // Import failed - certificate already exists in database. |
498 // Note it's a little weird this is an error but reimporting a PKCS12 is ok | 503 // Note it's a little weird this is an error but reimporting a PKCS12 is ok |
499 // (no-op). That's how Mozilla does it, though. | 504 // (no-op). That's how Mozilla does it, though. |
500 NET_ERROR(IMPORT_CERT_ALREADY_EXISTS, -704) | 505 NET_ERROR(IMPORT_CERT_ALREADY_EXISTS, -704) |
501 | 506 |
502 // CA import failed due to some other error. | 507 // CA import failed due to some other error. |
503 NET_ERROR(IMPORT_CA_CERT_FAILED, -705) | 508 NET_ERROR(IMPORT_CA_CERT_FAILED, -705) |
504 | 509 |
505 // Server certificate import failed due to some internal error. | 510 // Server certificate import failed due to some internal error. |
506 NET_ERROR(IMPORT_SERVER_CERT_FAILED, -706) | 511 NET_ERROR(IMPORT_SERVER_CERT_FAILED, -706) |
OLD | NEW |