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 364 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
375 | 375 |
376 // Certificate Transparency: Failed to parse the received consistency proof. | 376 // Certificate Transparency: Failed to parse the received consistency proof. |
377 NET_ERROR(CT_CONSISTENCY_PROOF_PARSING_FAILED, -171) | 377 NET_ERROR(CT_CONSISTENCY_PROOF_PARSING_FAILED, -171) |
378 | 378 |
379 // The SSL server required an unsupported cipher suite that has since been | 379 // The SSL server required an unsupported cipher suite that has since been |
380 // removed. This error will temporarily be signaled on a fallback for one or two | 380 // removed. This error will temporarily be signaled on a fallback for one or two |
381 // releases immediately following a cipher suite's removal, after which the | 381 // releases immediately following a cipher suite's removal, after which the |
382 // fallback will be removed. | 382 // fallback will be removed. |
383 NET_ERROR(SSL_OBSOLETE_CIPHER, -172) | 383 NET_ERROR(SSL_OBSOLETE_CIPHER, -172) |
384 | 384 |
| 385 // When a WebSocket handshake is done successfully, the URLRequest is cancelled |
| 386 // with this error code. |
| 387 NET_ERROR(WEBSOCKET_HANDSHAKE_SUCCESS, -173) |
| 388 |
385 // Certificate error codes | 389 // Certificate error codes |
386 // | 390 // |
387 // The values of certificate error codes must be consecutive. | 391 // The values of certificate error codes must be consecutive. |
388 | 392 |
389 // The server responded with a certificate whose common name did not match | 393 // The server responded with a certificate whose common name did not match |
390 // the host name. This could mean: | 394 // the host name. This could mean: |
391 // | 395 // |
392 // 1. An attacker has redirected our traffic to their server and is | 396 // 1. An attacker has redirected our traffic to their server and is |
393 // presenting a certificate for which they know the private key. | 397 // presenting a certificate for which they know the private key. |
394 // | 398 // |
(...skipping 452 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
847 NET_ERROR(DNS_TIMED_OUT, -803) | 851 NET_ERROR(DNS_TIMED_OUT, -803) |
848 | 852 |
849 // The entry was not found in cache, for cache-only lookups. | 853 // The entry was not found in cache, for cache-only lookups. |
850 NET_ERROR(DNS_CACHE_MISS, -804) | 854 NET_ERROR(DNS_CACHE_MISS, -804) |
851 | 855 |
852 // Suffix search list rules prevent resolution of the given host name. | 856 // Suffix search list rules prevent resolution of the given host name. |
853 NET_ERROR(DNS_SEARCH_EMPTY, -805) | 857 NET_ERROR(DNS_SEARCH_EMPTY, -805) |
854 | 858 |
855 // Failed to sort addresses according to RFC3484. | 859 // Failed to sort addresses according to RFC3484. |
856 NET_ERROR(DNS_SORT_ERROR, -806) | 860 NET_ERROR(DNS_SORT_ERROR, -806) |
OLD | NEW |