Skip to content

Commit a52d996

Browse files
authored
1 parent e11bdcd commit a52d996

File tree

1 file changed

+44
-50
lines changed

1 file changed

+44
-50
lines changed

CefSharp/Enums/CefErrorCode.cs

Lines changed: 44 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public enum CefErrorCode
2626
// 300-399 HTTP errors
2727
// 400-499 Cache errors
2828
// 500-599 ?
29-
// 600-699 FTP errors
29+
// 600-699 <Obsolete: FTP errors>
3030
// 700-799 Certificate manager errors
3131
// 800-899 DNS resolver errors
3232

@@ -195,6 +195,12 @@ public enum CefErrorCode
195195
/// </summary>
196196
BlockedByOrb = -32,
197197

198+
/// <summary>
199+
/// The request was blocked because it originated from a frame that has disabled
200+
/// network access.
201+
/// </summary>
202+
NetworkAccessRevoked = -33,
203+
198204
/// <summary>
199205
/// A connection was closed (corresponding to a TCP FIN).
200206
/// </summary>
@@ -404,7 +410,7 @@ public enum CefErrorCode
404410
/// received a 302 (temporary redirect) response. The response body might
405411
/// include a description of why the request failed.
406412
///
407-
/// TODO(https://crbug.com/928551): This is deprecated and should not be used by
413+
/// TODO(crbug.com/40093955): This is deprecated and should not be used by
408414
/// new code.
409415
/// </summary>
410416
HttpsProxyTunnelResponseRedirect = -140,
@@ -1184,7 +1190,29 @@ public enum CefErrorCode
11841190
/// The IP address space of the cached remote endpoint is blocked by private
11851191
/// network access check.
11861192
/// </summary>
1187-
CachedIpAddressSpaceBlockedByLocalNetworkAccessPolicy = -384,
1193+
CachedIpAddressSpaceBlockedByPrivateNetworkAccessPolicy = -384,
1194+
1195+
/// <summary>
1196+
/// The connection is blocked by private network access checks.
1197+
/// </summary>
1198+
BlockedByPrivateNetworkAccessChecks = -385,
1199+
1200+
/// <summary>
1201+
/// Content decoding failed due to the zstd window size being too big (over 8MB).
1202+
/// </summary>
1203+
ZstdWindowSizeTooBig = -386,
1204+
1205+
/// <summary>
1206+
/// The compression dictionary cannot be loaded.
1207+
/// </summary>
1208+
DictionaryLoadFailed = -387,
1209+
1210+
/// <summary>
1211+
/// The "content-dictionary" response header is unexpected. This is used both
1212+
/// when there is no "content-dictionary" response header and when the received
1213+
/// "content-dictionary" response header does not match the expected value.
1214+
/// </summary>
1215+
UnexpectedContentDictionaryHeader = -388,
11881216

11891217
/// <summary>
11901218
/// The cache does not have the requested entry.
@@ -1309,51 +1337,13 @@ public enum CefErrorCode
13091337
TrustTokenOperationSuccessWithoutSendingRequest = -507,
13101338

13111339
// *** Code -600 is reserved (was FTP_PASV_COMMAND_FAILED). ***
1312-
1313-
/// <summary>
1314-
/// A generic error for failed FTP control connection command.
1315-
/// If possible, please use or add a more specific error code.
1316-
/// </summary>
1317-
FtpFailed = -601,
1318-
1319-
/// <summary>
1320-
/// The server cannot fulfill the request at this point. This is a temporary
1321-
/// error.
1322-
/// FTP response code 421.
1323-
/// </summary>
1324-
FtpServiceUnavailable = -602,
1325-
1326-
/// <summary>
1327-
/// The server has aborted the transfer.
1328-
/// FTP response code 426.
1329-
/// </summary>
1330-
FtpTransferAborted = -603,
1331-
1332-
/// <summary>
1333-
/// The file is busy, or some other temporary error condition on opening
1334-
/// the file.
1335-
/// FTP response code 450.
1336-
/// </summary>
1337-
FtpFileBusy = -604,
1338-
1339-
/// <summary>
1340-
/// Server rejected our command because of syntax errors.
1341-
/// FTP response codes 500, 501.
1342-
/// </summary>
1343-
FtpSyntaxError = -605,
1344-
1345-
/// <summary>
1346-
/// Server does not support the command we issued.
1347-
/// FTP response codes 502, 504.
1348-
/// </summary>
1349-
FtpCommandNotSupported = -606,
1350-
1351-
/// <summary>
1352-
/// Server rejected our command because we didn't issue the commands in right
1353-
/// order.
1354-
/// FTP response code 503.
1355-
/// </summary>
1356-
FtpBadCommandSequence = -607,
1340+
// *** Code -601 is reserved (was FTP_FAILED). ***
1341+
// *** Code -602 is reserved (was FTP_SERVICE_UNAVAILABLE). ***
1342+
// *** Code -603 is reserved (was FTP_TRANSFER_ABORTED). ***
1343+
// *** Code -604 is reserved (was FTP_FILE_BUSY). ***
1344+
// *** Code -605 is reserved (was FTP_SYNTAX_ERROR). ***
1345+
// *** Code -606 is reserved (was FTP_COMMAND_NOT_SUPPORTED). ***
1346+
// *** Code -607 is reserved (was FTP_BAD_COMMAND_SEQUENCE). ***
13571347

13581348
/// <summary>
13591349
/// PKCS #12 import failed due to incorrect password.
@@ -1504,9 +1494,13 @@ public enum CefErrorCode
15041494
/// </summary>
15051495
DnsNoMatchingSupportedAlpn = -811,
15061496

1497+
// Error -812 was removed
1498+
// Error -813 was removed
1499+
15071500
/// <summary>
1508-
/// The compression dictionary cannot be loaded.
1501+
/// When checking whether secure DNS can be used, the response returned for the
1502+
/// requested probe record either had no answer or was invalid.
15091503
/// </summary>
1510-
DictionaryLoadFailed = -812,
1504+
DnsSecureProbeRecordInvalid = -814,
15111505
};
15121506
}

0 commit comments

Comments
 (0)