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. | 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 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
239 // valid, or the CSP won't allow arbitrary data to be signed. | 239 // valid, or the CSP won't allow arbitrary data to be signed. |
240 NET_ERROR(SSL_CLIENT_AUTH_SIGNATURE_FAILED, -141) | 240 NET_ERROR(SSL_CLIENT_AUTH_SIGNATURE_FAILED, -141) |
241 | 241 |
242 // The message was too large for the transport. (for example a UDP message | 242 // The message was too large for the transport. (for example a UDP message |
243 // which exceeds size threshold). | 243 // which exceeds size threshold). |
244 NET_ERROR(MSG_TOO_BIG, -142) | 244 NET_ERROR(MSG_TOO_BIG, -142) |
245 | 245 |
246 // A SPDY session already exists, and should be used instead of this connection. | 246 // A SPDY session already exists, and should be used instead of this connection. |
247 NET_ERROR(SPDY_SESSION_ALREADY_EXISTS, -143) | 247 NET_ERROR(SPDY_SESSION_ALREADY_EXISTS, -143) |
248 | 248 |
249 // Violation of limits (e.g. imposed to prevent DoS). | 249 // Error -144 was removed (LIMIT_VIOLATION). |
250 NET_ERROR(LIMIT_VIOLATION, -144) | |
251 | 250 |
252 // WebSocket protocol error occurred. | 251 // Error -145 was removed (WS_PROTOCOL_ERROR). |
253 NET_ERROR(WS_PROTOCOL_ERROR, -145) | |
254 | 252 |
255 // Connection was aborted for switching to another ptotocol. | 253 // Connection was aborted for switching to another ptotocol. |
256 // WebSocket abort SocketStream connection when alternate protocol is found. | 254 // WebSocket abort SocketStream connection when alternate protocol is found. |
257 NET_ERROR(PROTOCOL_SWITCHED, -146) | 255 NET_ERROR(PROTOCOL_SWITCHED, -146) |
258 | 256 |
259 // Returned when attempting to bind an address that is already in use. | 257 // Returned when attempting to bind an address that is already in use. |
260 NET_ERROR(ADDRESS_IN_USE, -147) | 258 NET_ERROR(ADDRESS_IN_USE, -147) |
261 | 259 |
262 // An operation failed because the SSL handshake has not completed. | 260 // An operation failed because the SSL handshake has not completed. |
263 NET_ERROR(SSL_HANDSHAKE_NOT_COMPLETED, -148) | 261 NET_ERROR(SSL_HANDSHAKE_NOT_COMPLETED, -148) |
(...skipping 387 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
651 NET_ERROR(DNS_TIMED_OUT, -803) | 649 NET_ERROR(DNS_TIMED_OUT, -803) |
652 | 650 |
653 // The entry was not found in cache, for cache-only lookups. | 651 // The entry was not found in cache, for cache-only lookups. |
654 NET_ERROR(DNS_CACHE_MISS, -804) | 652 NET_ERROR(DNS_CACHE_MISS, -804) |
655 | 653 |
656 // Suffix search list rules prevent resolution of the given host name. | 654 // Suffix search list rules prevent resolution of the given host name. |
657 NET_ERROR(DNS_SEARCH_EMPTY, -805) | 655 NET_ERROR(DNS_SEARCH_EMPTY, -805) |
658 | 656 |
659 // Failed to sort addresses according to RFC3484. | 657 // Failed to sort addresses according to RFC3484. |
660 NET_ERROR(DNS_SORT_ERROR, -806) | 658 NET_ERROR(DNS_SORT_ERROR, -806) |
OLD | NEW |