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 // |
11 // Ranges: | 11 // Ranges: |
12 // 0- 99 System related errors | 12 // 0- 99 System related errors |
13 // 100-199 Connection related errors | 13 // 100-199 Connection related errors |
wtc
2013/04/30 23:41:59
It seems that the IS_CONNECTED error could also be
| |
14 // 200-299 Certificate errors | 14 // 200-299 Certificate errors |
15 // 300-399 HTTP errors | 15 // 300-399 HTTP errors |
16 // 400-499 Cache errors | 16 // 400-499 Cache errors |
17 // 500-599 ? | 17 // 500-599 ? |
18 // 600-699 FTP errors | 18 // 600-699 FTP errors |
19 // 700-799 Certificate manager errors | 19 // 700-799 Certificate manager errors |
20 // 800-899 DNS resolver errors | 20 // 800-899 DNS resolver errors |
21 | 21 |
22 // An asynchronous IO operation is not yet complete. This usually does not | 22 // An asynchronous IO operation is not yet complete. This usually does not |
23 // indicate a fatal error. Typically this error will be generated as a | 23 // indicate a fatal error. Typically this error will be generated as a |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
84 // The client chose to block the request. | 84 // The client chose to block the request. |
85 NET_ERROR(BLOCKED_BY_CLIENT, -20) | 85 NET_ERROR(BLOCKED_BY_CLIENT, -20) |
86 | 86 |
87 // The network changed. | 87 // The network changed. |
88 NET_ERROR(NETWORK_CHANGED, -21) | 88 NET_ERROR(NETWORK_CHANGED, -21) |
89 | 89 |
90 // The request was blocked by the URL blacklist configured by the domain | 90 // The request was blocked by the URL blacklist configured by the domain |
91 // administrator. | 91 // administrator. |
92 NET_ERROR(BLOCKED_BY_ADMINISTRATOR, -22) | 92 NET_ERROR(BLOCKED_BY_ADMINISTRATOR, -22) |
93 | 93 |
94 // The socket is connected. | |
wtc
2013/04/30 23:41:59
Add "already" before "connected".
Bei Zhang
2013/05/01 00:03:23
Done.
| |
95 NET_ERROR(SOCKET_IS_CONNECTED, -23) | |
96 | |
94 // A connection was closed (corresponding to a TCP FIN). | 97 // A connection was closed (corresponding to a TCP FIN). |
95 NET_ERROR(CONNECTION_CLOSED, -100) | 98 NET_ERROR(CONNECTION_CLOSED, -100) |
96 | 99 |
97 // A connection was reset (corresponding to a TCP RST). | 100 // A connection was reset (corresponding to a TCP RST). |
98 NET_ERROR(CONNECTION_RESET, -101) | 101 NET_ERROR(CONNECTION_RESET, -101) |
99 | 102 |
100 // A connection attempt was refused. | 103 // A connection attempt was refused. |
101 NET_ERROR(CONNECTION_REFUSED, -102) | 104 NET_ERROR(CONNECTION_REFUSED, -102) |
102 | 105 |
103 // A connection timed out as a result of not receiving an ACK for data sent. | 106 // A connection timed out as a result of not receiving an ACK for data sent. |
(...skipping 557 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
661 NET_ERROR(DNS_TIMED_OUT, -803) | 664 NET_ERROR(DNS_TIMED_OUT, -803) |
662 | 665 |
663 // The entry was not found in cache, for cache-only lookups. | 666 // The entry was not found in cache, for cache-only lookups. |
664 NET_ERROR(DNS_CACHE_MISS, -804) | 667 NET_ERROR(DNS_CACHE_MISS, -804) |
665 | 668 |
666 // Suffix search list rules prevent resolution of the given host name. | 669 // Suffix search list rules prevent resolution of the given host name. |
667 NET_ERROR(DNS_SEARCH_EMPTY, -805) | 670 NET_ERROR(DNS_SEARCH_EMPTY, -805) |
668 | 671 |
669 // Failed to sort addresses according to RFC3484. | 672 // Failed to sort addresses according to RFC3484. |
670 NET_ERROR(DNS_SORT_ERROR, -806) | 673 NET_ERROR(DNS_SORT_ERROR, -806) |
OLD | NEW |