| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 values. | 6 // inside a macro to generate enum values. |
| 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 253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 264 | 264 |
| 265 // A SPDY session already exists, and should be used instead of this connection. | 265 // A SPDY session already exists, and should be used instead of this connection. |
| 266 NET_ERROR(SPDY_SESSION_ALREADY_EXISTS, -143) | 266 NET_ERROR(SPDY_SESSION_ALREADY_EXISTS, -143) |
| 267 | 267 |
| 268 // Error -144 was removed (LIMIT_VIOLATION). | 268 // Error -144 was removed (LIMIT_VIOLATION). |
| 269 | 269 |
| 270 // Websocket protocol error. Indicates that we are terminating the connection | 270 // Websocket protocol error. Indicates that we are terminating the connection |
| 271 // due to a malformed frame or other protocol violation. | 271 // due to a malformed frame or other protocol violation. |
| 272 NET_ERROR(WS_PROTOCOL_ERROR, -145) | 272 NET_ERROR(WS_PROTOCOL_ERROR, -145) |
| 273 | 273 |
| 274 // Connection was aborted for switching to another ptotocol. | 274 // Error -146 was removed (PROTOCOL_SWITCHED) |
| 275 // WebSocket abort SocketStream connection when alternate protocol is found. | |
| 276 NET_ERROR(PROTOCOL_SWITCHED, -146) | |
| 277 | 275 |
| 278 // Returned when attempting to bind an address that is already in use. | 276 // Returned when attempting to bind an address that is already in use. |
| 279 NET_ERROR(ADDRESS_IN_USE, -147) | 277 NET_ERROR(ADDRESS_IN_USE, -147) |
| 280 | 278 |
| 281 // An operation failed because the SSL handshake has not completed. | 279 // An operation failed because the SSL handshake has not completed. |
| 282 NET_ERROR(SSL_HANDSHAKE_NOT_COMPLETED, -148) | 280 NET_ERROR(SSL_HANDSHAKE_NOT_COMPLETED, -148) |
| 283 | 281 |
| 284 // SSL peer's public key is invalid. | 282 // SSL peer's public key is invalid. |
| 285 NET_ERROR(SSL_BAD_PEER_PUBLIC_KEY, -149) | 283 NET_ERROR(SSL_BAD_PEER_PUBLIC_KEY, -149) |
| 286 | 284 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 298 | 296 |
| 299 // An SSL peer sent us a fatal decrypt_error alert. This typically occurs when | 297 // An SSL peer sent us a fatal decrypt_error alert. This typically occurs when |
| 300 // a peer could not correctly verify a signature (in CertificateVerify or | 298 // a peer could not correctly verify a signature (in CertificateVerify or |
| 301 // ServerKeyExchange) or validate a Finished message. | 299 // ServerKeyExchange) or validate a Finished message. |
| 302 NET_ERROR(SSL_DECRYPT_ERROR_ALERT, -153) | 300 NET_ERROR(SSL_DECRYPT_ERROR_ALERT, -153) |
| 303 | 301 |
| 304 // There are too many pending WebSocketJob instances, so the new job was not | 302 // There are too many pending WebSocketJob instances, so the new job was not |
| 305 // pushed to the queue. | 303 // pushed to the queue. |
| 306 NET_ERROR(WS_THROTTLE_QUEUE_TOO_LARGE, -154) | 304 NET_ERROR(WS_THROTTLE_QUEUE_TOO_LARGE, -154) |
| 307 | 305 |
| 308 // There are too many active SocketStream instances, so the new connect request | 306 // Error -155 was removed (TOO_MANY_SOCKET_STREAMS) |
| 309 // was rejected. | |
| 310 NET_ERROR(TOO_MANY_SOCKET_STREAMS, -155) | |
| 311 | 307 |
| 312 // The SSL server certificate changed in a renegotiation. | 308 // The SSL server certificate changed in a renegotiation. |
| 313 NET_ERROR(SSL_SERVER_CERT_CHANGED, -156) | 309 NET_ERROR(SSL_SERVER_CERT_CHANGED, -156) |
| 314 | 310 |
| 315 // The SSL server indicated that an unnecessary TLS version fallback was | 311 // The SSL server indicated that an unnecessary TLS version fallback was |
| 316 // performed. | 312 // performed. |
| 317 NET_ERROR(SSL_INAPPROPRIATE_FALLBACK, -157) | 313 NET_ERROR(SSL_INAPPROPRIATE_FALLBACK, -157) |
| 318 | 314 |
| 319 // Certificate Transparency: All Signed Certificate Timestamps failed to verify. | 315 // Certificate Transparency: All Signed Certificate Timestamps failed to verify. |
| 320 NET_ERROR(CT_NO_SCTS_VERIFIED_OK, -158) | 316 NET_ERROR(CT_NO_SCTS_VERIFIED_OK, -158) |
| (...skipping 452 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 773 NET_ERROR(DNS_TIMED_OUT, -803) | 769 NET_ERROR(DNS_TIMED_OUT, -803) |
| 774 | 770 |
| 775 // The entry was not found in cache, for cache-only lookups. | 771 // The entry was not found in cache, for cache-only lookups. |
| 776 NET_ERROR(DNS_CACHE_MISS, -804) | 772 NET_ERROR(DNS_CACHE_MISS, -804) |
| 777 | 773 |
| 778 // Suffix search list rules prevent resolution of the given host name. | 774 // Suffix search list rules prevent resolution of the given host name. |
| 779 NET_ERROR(DNS_SEARCH_EMPTY, -805) | 775 NET_ERROR(DNS_SEARCH_EMPTY, -805) |
| 780 | 776 |
| 781 // Failed to sort addresses according to RFC3484. | 777 // Failed to sort addresses according to RFC3484. |
| 782 NET_ERROR(DNS_SORT_ERROR, -806) | 778 NET_ERROR(DNS_SORT_ERROR, -806) |
| OLD | NEW |