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

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

Issue 15688012: net: don't process truncated headers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Only enforce this for HTTPS URLs. Created 7 years, 6 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. 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 //
(...skipping 518 matching lines...) Expand 10 before | Expand all | Expand 10 after
529 // Content-Length header when the connection is closed. 529 // Content-Length header when the connection is closed.
530 NET_ERROR(CONTENT_LENGTH_MISMATCH, -354) 530 NET_ERROR(CONTENT_LENGTH_MISMATCH, -354)
531 531
532 // The HTTP response body is transferred with Chunked-Encoding, but the 532 // The HTTP response body is transferred with Chunked-Encoding, but the
533 // terminating zero-length chunk was never sent when the connection is closed. 533 // terminating zero-length chunk was never sent when the connection is closed.
534 NET_ERROR(INCOMPLETE_CHUNKED_ENCODING, -355) 534 NET_ERROR(INCOMPLETE_CHUNKED_ENCODING, -355)
535 535
536 // There is a QUIC protocol error. 536 // There is a QUIC protocol error.
537 NET_ERROR(QUIC_PROTOCOL_ERROR, -356) 537 NET_ERROR(QUIC_PROTOCOL_ERROR, -356)
538 538
539 // The HTTP headers were truncated by an EOF.
540 NET_ERROR(HEADERS_TRUNCATED, -357)
wtc 2013/05/30 00:38:30 I suggest renaming this RESPONSE_HEADERS_TRUNCATED
agl 2013/06/03 18:18:29 Will do.
541
539 // The cache does not have the requested entry. 542 // The cache does not have the requested entry.
540 NET_ERROR(CACHE_MISS, -400) 543 NET_ERROR(CACHE_MISS, -400)
541 544
542 // Unable to read from the disk cache. 545 // Unable to read from the disk cache.
543 NET_ERROR(CACHE_READ_FAILURE, -401) 546 NET_ERROR(CACHE_READ_FAILURE, -401)
544 547
545 // Unable to write to the disk cache. 548 // Unable to write to the disk cache.
546 NET_ERROR(CACHE_WRITE_FAILURE, -402) 549 NET_ERROR(CACHE_WRITE_FAILURE, -402)
547 550
548 // The operation is not supported for this entry. 551 // The operation is not supported for this entry.
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
675 NET_ERROR(DNS_TIMED_OUT, -803) 678 NET_ERROR(DNS_TIMED_OUT, -803)
676 679
677 // The entry was not found in cache, for cache-only lookups. 680 // The entry was not found in cache, for cache-only lookups.
678 NET_ERROR(DNS_CACHE_MISS, -804) 681 NET_ERROR(DNS_CACHE_MISS, -804)
679 682
680 // Suffix search list rules prevent resolution of the given host name. 683 // Suffix search list rules prevent resolution of the given host name.
681 NET_ERROR(DNS_SEARCH_EMPTY, -805) 684 NET_ERROR(DNS_SEARCH_EMPTY, -805)
682 685
683 // Failed to sort addresses according to RFC3484. 686 // Failed to sort addresses according to RFC3484.
684 NET_ERROR(DNS_SORT_ERROR, -806) 687 NET_ERROR(DNS_SORT_ERROR, -806)
OLDNEW
« no previous file with comments | « no previous file | net/http/http_proxy_client_socket_pool_spdy2_unittest.cc » ('j') | net/http/http_stream_parser.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698