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 510 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
521 | 521 |
522 // The URL is invalid. | 522 // The URL is invalid. |
523 NET_ERROR(INVALID_URL, -300) | 523 NET_ERROR(INVALID_URL, -300) |
524 | 524 |
525 // The scheme of the URL is disallowed. | 525 // The scheme of the URL is disallowed. |
526 NET_ERROR(DISALLOWED_URL_SCHEME, -301) | 526 NET_ERROR(DISALLOWED_URL_SCHEME, -301) |
527 | 527 |
528 // The scheme of the URL is unknown. | 528 // The scheme of the URL is unknown. |
529 NET_ERROR(UNKNOWN_URL_SCHEME, -302) | 529 NET_ERROR(UNKNOWN_URL_SCHEME, -302) |
530 | 530 |
| 531 // Attempting to load an URL resulted in a redirect to an invalid URL. |
| 532 NET_ERROR(INVALID_REDIRECT, -303) |
| 533 |
531 // Attempting to load an URL resulted in too many redirects. | 534 // Attempting to load an URL resulted in too many redirects. |
532 NET_ERROR(TOO_MANY_REDIRECTS, -310) | 535 NET_ERROR(TOO_MANY_REDIRECTS, -310) |
533 | 536 |
534 // Attempting to load an URL resulted in an unsafe redirect (e.g., a redirect | 537 // Attempting to load an URL resulted in an unsafe redirect (e.g., a redirect |
535 // to file:// is considered unsafe). | 538 // to file:// is considered unsafe). |
536 NET_ERROR(UNSAFE_REDIRECT, -311) | 539 NET_ERROR(UNSAFE_REDIRECT, -311) |
537 | 540 |
538 // Attempting to load an URL with an unsafe port number. These are port | 541 // Attempting to load an URL with an unsafe port number. These are port |
539 // numbers that correspond to services, which are not robust to spurious input | 542 // numbers that correspond to services, which are not robust to spurious input |
540 // that may be constructed as a result of an allowed web construct (e.g., HTTP | 543 // that may be constructed as a result of an allowed web construct (e.g., HTTP |
(...skipping 331 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
872 NET_ERROR(DNS_TIMED_OUT, -803) | 875 NET_ERROR(DNS_TIMED_OUT, -803) |
873 | 876 |
874 // The entry was not found in cache, for cache-only lookups. | 877 // The entry was not found in cache, for cache-only lookups. |
875 NET_ERROR(DNS_CACHE_MISS, -804) | 878 NET_ERROR(DNS_CACHE_MISS, -804) |
876 | 879 |
877 // Suffix search list rules prevent resolution of the given host name. | 880 // Suffix search list rules prevent resolution of the given host name. |
878 NET_ERROR(DNS_SEARCH_EMPTY, -805) | 881 NET_ERROR(DNS_SEARCH_EMPTY, -805) |
879 | 882 |
880 // Failed to sort addresses according to RFC3484. | 883 // Failed to sort addresses according to RFC3484. |
881 NET_ERROR(DNS_SORT_ERROR, -806) | 884 NET_ERROR(DNS_SORT_ERROR, -806) |
OLD | NEW |