| 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 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 203 NET_ERROR(PROXY_CERTIFICATE_INVALID, -136) | 203 NET_ERROR(PROXY_CERTIFICATE_INVALID, -136) |
| 204 | 204 |
| 205 // An error occurred when trying to do a name resolution (DNS). | 205 // An error occurred when trying to do a name resolution (DNS). |
| 206 NET_ERROR(NAME_RESOLUTION_FAILED, -137) | 206 NET_ERROR(NAME_RESOLUTION_FAILED, -137) |
| 207 | 207 |
| 208 // Permission to access the network was denied. This is used to distinguish | 208 // Permission to access the network was denied. This is used to distinguish |
| 209 // errors that were most likely caused by a firewall from other access denied | 209 // errors that were most likely caused by a firewall from other access denied |
| 210 // errors. See also ERR_ACCESS_DENIED. | 210 // errors. See also ERR_ACCESS_DENIED. |
| 211 NET_ERROR(NETWORK_ACCESS_DENIED, -138) | 211 NET_ERROR(NETWORK_ACCESS_DENIED, -138) |
| 212 | 212 |
| 213 // The request throttler module cancelled this request to avoid DDOS. |
| 214 NET_ERROR(TEMPORARILY_THROTTLED, -139) |
| 215 |
| 213 // Certificate error codes | 216 // Certificate error codes |
| 214 // | 217 // |
| 215 // The values of certificate error codes must be consecutive. | 218 // The values of certificate error codes must be consecutive. |
| 216 | 219 |
| 217 // 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 |
| 218 // the host name. This could mean: | 221 // the host name. This could mean: |
| 219 // | 222 // |
| 220 // 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 |
| 221 // presenting a certificate for which he knows the private key. | 224 // presenting a certificate for which he knows the private key. |
| 222 // | 225 // |
| (...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 499 // Import failed - certificate already exists in database. | 502 // Import failed - certificate already exists in database. |
| 500 // 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 |
| 501 // (no-op). That's how Mozilla does it, though. | 504 // (no-op). That's how Mozilla does it, though. |
| 502 NET_ERROR(IMPORT_CERT_ALREADY_EXISTS, -704) | 505 NET_ERROR(IMPORT_CERT_ALREADY_EXISTS, -704) |
| 503 | 506 |
| 504 // CA import failed due to some other error. | 507 // CA import failed due to some other error. |
| 505 NET_ERROR(IMPORT_CA_CERT_FAILED, -705) | 508 NET_ERROR(IMPORT_CA_CERT_FAILED, -705) |
| 506 | 509 |
| 507 // Server certificate import failed due to some internal error. | 510 // Server certificate import failed due to some internal error. |
| 508 NET_ERROR(IMPORT_SERVER_CERT_FAILED, -706) | 511 NET_ERROR(IMPORT_SERVER_CERT_FAILED, -706) |
| OLD | NEW |