| 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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 | 109 |
| 110 // The request failed because the response was delivered along with requirements | 110 // The request failed because the response was delivered along with requirements |
| 111 // which are not met ('X-Frame-Options' and 'Content-Security-Policy' ancestor | 111 // which are not met ('X-Frame-Options' and 'Content-Security-Policy' ancestor |
| 112 // checks, for instance). | 112 // checks, for instance). |
| 113 NET_ERROR(BLOCKED_BY_RESPONSE, -27) | 113 NET_ERROR(BLOCKED_BY_RESPONSE, -27) |
| 114 | 114 |
| 115 // The request failed after the response was received, based on client-side | 115 // The request failed after the response was received, based on client-side |
| 116 // heuristics that point to the possiblility of a cross-site scripting attack. | 116 // heuristics that point to the possiblility of a cross-site scripting attack. |
| 117 NET_ERROR(BLOCKED_BY_XSS_AUDITOR, -28) | 117 NET_ERROR(BLOCKED_BY_XSS_AUDITOR, -28) |
| 118 | 118 |
| 119 // The request was blocked by system policy disallowing some or all cleartext |
| 120 // requests. Used for NetworkSecurityPolicy on Android. |
| 121 NET_ERROR(CLEARTEXT_NOT_PERMITTED, -29) |
| 122 |
| 119 // A connection was closed (corresponding to a TCP FIN). | 123 // A connection was closed (corresponding to a TCP FIN). |
| 120 NET_ERROR(CONNECTION_CLOSED, -100) | 124 NET_ERROR(CONNECTION_CLOSED, -100) |
| 121 | 125 |
| 122 // A connection was reset (corresponding to a TCP RST). | 126 // A connection was reset (corresponding to a TCP RST). |
| 123 NET_ERROR(CONNECTION_RESET, -101) | 127 NET_ERROR(CONNECTION_RESET, -101) |
| 124 | 128 |
| 125 // A connection attempt was refused. | 129 // A connection attempt was refused. |
| 126 NET_ERROR(CONNECTION_REFUSED, -102) | 130 NET_ERROR(CONNECTION_REFUSED, -102) |
| 127 | 131 |
| 128 // A connection timed out as a result of not receiving an ACK for data sent. | 132 // A connection timed out as a result of not receiving an ACK for data sent. |
| (...skipping 715 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 844 NET_ERROR(DNS_TIMED_OUT, -803) | 848 NET_ERROR(DNS_TIMED_OUT, -803) |
| 845 | 849 |
| 846 // The entry was not found in cache, for cache-only lookups. | 850 // The entry was not found in cache, for cache-only lookups. |
| 847 NET_ERROR(DNS_CACHE_MISS, -804) | 851 NET_ERROR(DNS_CACHE_MISS, -804) |
| 848 | 852 |
| 849 // Suffix search list rules prevent resolution of the given host name. | 853 // Suffix search list rules prevent resolution of the given host name. |
| 850 NET_ERROR(DNS_SEARCH_EMPTY, -805) | 854 NET_ERROR(DNS_SEARCH_EMPTY, -805) |
| 851 | 855 |
| 852 // Failed to sort addresses according to RFC3484. | 856 // Failed to sort addresses according to RFC3484. |
| 853 NET_ERROR(DNS_SORT_ERROR, -806) | 857 NET_ERROR(DNS_SORT_ERROR, -806) |
| OLD | NEW |