Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(31)

Side by Side Diff: net/base/net_error_list.h

Issue 227473008: make SetReceiveBufferSize and SetSendBufferSize return net error codes (instead of bools) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix linux typo Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 295 matching lines...) Expand 10 before | Expand all | Expand 10 after
306 // The SSL server indicated that an unnecessary TLS version fallback was 306 // The SSL server indicated that an unnecessary TLS version fallback was
307 // performed. 307 // performed.
308 NET_ERROR(SSL_INAPPROPRIATE_FALLBACK, -157) 308 NET_ERROR(SSL_INAPPROPRIATE_FALLBACK, -157)
309 309
310 // Certificate Transparency: All Signed Certificate Timestamps failed to verify. 310 // Certificate Transparency: All Signed Certificate Timestamps failed to verify.
311 NET_ERROR(CT_NO_SCTS_VERIFIED_OK, -158) 311 NET_ERROR(CT_NO_SCTS_VERIFIED_OK, -158)
312 312
313 // The SSL server sent us a fatal unrecognized_name alert. 313 // The SSL server sent us a fatal unrecognized_name alert.
314 NET_ERROR(SSL_UNRECOGNIZED_NAME_ALERT, -159) 314 NET_ERROR(SSL_UNRECOGNIZED_NAME_ALERT, -159)
315 315
316 // Failed to set or change the socket's receive buffer size as requested 316 // Failed to set the socket's receive buffer size as requested.
317 NET_ERROR(SOCKET_SET_RECEIVE_BUFFER_SIZE_ERROR, -160) 317 NET_ERROR(SOCKET_SET_RECEIVE_BUFFER_SIZE_ERROR, -160)
318 318
319 // Failed to set or change the socket's send buffer size as requested. 319 // Failed to set the socket's send buffer size as requested.
320 NET_ERROR(SOCKET_SET_SEND_BUFFER_SIZE_ERROR, -161) 320 NET_ERROR(SOCKET_SET_SEND_BUFFER_SIZE_ERROR, -161)
321 321
322 // Failed to set the socket's receive buffer size as requested, despite success
323 // return code from setsockopt.
324 NET_ERROR(SOCKET_RECEIVE_BUFFER_SIZE_UNCHANGEABLE, -162)
325
326 // Failed to set the socket's send buffer size as requested, despite success
327 // return code from setsockopt.
328 NET_ERROR(SOCKET_SEND_BUFFER_SIZE_UNCHANGEABLE, -163)
329
322 // Certificate error codes 330 // Certificate error codes
323 // 331 //
324 // The values of certificate error codes must be consecutive. 332 // The values of certificate error codes must be consecutive.
325 333
326 // The server responded with a certificate whose common name did not match 334 // The server responded with a certificate whose common name did not match
327 // the host name. This could mean: 335 // the host name. This could mean:
328 // 336 //
329 // 1. An attacker has redirected our traffic to his server and is 337 // 1. An attacker has redirected our traffic to his server and is
330 // presenting a certificate for which he knows the private key. 338 // presenting a certificate for which he knows the private key.
331 // 339 //
(...skipping 394 matching lines...) Expand 10 before | Expand all | Expand 10 after
726 NET_ERROR(DNS_TIMED_OUT, -803) 734 NET_ERROR(DNS_TIMED_OUT, -803)
727 735
728 // The entry was not found in cache, for cache-only lookups. 736 // The entry was not found in cache, for cache-only lookups.
729 NET_ERROR(DNS_CACHE_MISS, -804) 737 NET_ERROR(DNS_CACHE_MISS, -804)
730 738
731 // Suffix search list rules prevent resolution of the given host name. 739 // Suffix search list rules prevent resolution of the given host name.
732 NET_ERROR(DNS_SEARCH_EMPTY, -805) 740 NET_ERROR(DNS_SEARCH_EMPTY, -805)
733 741
734 // Failed to sort addresses according to RFC3484. 742 // Failed to sort addresses according to RFC3484.
735 NET_ERROR(DNS_SORT_ERROR, -806) 743 NET_ERROR(DNS_SORT_ERROR, -806)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698