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 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
208 NET_ERROR(NAME_RESOLUTION_FAILED, -137) | 208 NET_ERROR(NAME_RESOLUTION_FAILED, -137) |
209 | 209 |
210 // Permission to access the network was denied. This is used to distinguish | 210 // Permission to access the network was denied. This is used to distinguish |
211 // errors that were most likely caused by a firewall from other access denied | 211 // errors that were most likely caused by a firewall from other access denied |
212 // errors. See also ERR_ACCESS_DENIED. | 212 // errors. See also ERR_ACCESS_DENIED. |
213 NET_ERROR(NETWORK_ACCESS_DENIED, -138) | 213 NET_ERROR(NETWORK_ACCESS_DENIED, -138) |
214 | 214 |
215 // The request throttler module cancelled this request to avoid DDOS. | 215 // The request throttler module cancelled this request to avoid DDOS. |
216 NET_ERROR(TEMPORARILY_THROTTLED, -139) | 216 NET_ERROR(TEMPORARILY_THROTTLED, -139) |
217 | 217 |
218 // A tunnel connection through the HTTPS proxy could received a non-200 | |
219 // non-407 response. | |
220 NET_ERROR(HTTPS_PROXY_TUNNEL_CONNECTION_RESPONSE, -140) | |
vandebo (ex-Chrome)
2010/12/04 00:30:37
The comment should be a bit more descriptive. Do
| |
221 | |
218 // Certificate error codes | 222 // Certificate error codes |
219 // | 223 // |
220 // The values of certificate error codes must be consecutive. | 224 // The values of certificate error codes must be consecutive. |
221 | 225 |
222 // The server responded with a certificate whose common name did not match | 226 // The server responded with a certificate whose common name did not match |
223 // the host name. This could mean: | 227 // the host name. This could mean: |
224 // | 228 // |
225 // 1. An attacker has redirected our traffic to his server and is | 229 // 1. An attacker has redirected our traffic to his server and is |
226 // presenting a certificate for which he knows the private key. | 230 // presenting a certificate for which he knows the private key. |
227 // | 231 // |
(...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
504 // Import failed - certificate already exists in database. | 508 // Import failed - certificate already exists in database. |
505 // Note it's a little weird this is an error but reimporting a PKCS12 is ok | 509 // Note it's a little weird this is an error but reimporting a PKCS12 is ok |
506 // (no-op). That's how Mozilla does it, though. | 510 // (no-op). That's how Mozilla does it, though. |
507 NET_ERROR(IMPORT_CERT_ALREADY_EXISTS, -704) | 511 NET_ERROR(IMPORT_CERT_ALREADY_EXISTS, -704) |
508 | 512 |
509 // CA import failed due to some other error. | 513 // CA import failed due to some other error. |
510 NET_ERROR(IMPORT_CA_CERT_FAILED, -705) | 514 NET_ERROR(IMPORT_CA_CERT_FAILED, -705) |
511 | 515 |
512 // Server certificate import failed due to some internal error. | 516 // Server certificate import failed due to some internal error. |
513 NET_ERROR(IMPORT_SERVER_CERT_FAILED, -706) | 517 NET_ERROR(IMPORT_SERVER_CERT_FAILED, -706) |
OLD | NEW |