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

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

Issue 8496016: Report ERR_CONTENT_LENGTH_MISMATCH when the count of bytes received doesn't match Content-Length. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Clear error Created 9 years, 1 month 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 493 matching lines...) Expand 10 before | Expand all | Expand 10 after
504 // The HTTP response contained multiple Location headers. 504 // The HTTP response contained multiple Location headers.
505 NET_ERROR(RESPONSE_HEADERS_MULTIPLE_LOCATION, -350) 505 NET_ERROR(RESPONSE_HEADERS_MULTIPLE_LOCATION, -350)
506 506
507 // SPDY server refused the stream. Client should retry. This should never be a 507 // SPDY server refused the stream. Client should retry. This should never be a
508 // user-visible error. 508 // user-visible error.
509 NET_ERROR(SPDY_SERVER_REFUSED_STREAM, -351) 509 NET_ERROR(SPDY_SERVER_REFUSED_STREAM, -351)
510 510
511 // SPDY server didn't respond to the PING message. 511 // SPDY server didn't respond to the PING message.
512 NET_ERROR(SPDY_PING_FAILED, -352) 512 NET_ERROR(SPDY_PING_FAILED, -352)
513 513
514 // Content-Length does not match the number of bytes received.
515 NET_ERROR(CONTENT_LENGTH_MISMATCH, -353)
516
514 // The cache does not have the requested entry. 517 // The cache does not have the requested entry.
515 NET_ERROR(CACHE_MISS, -400) 518 NET_ERROR(CACHE_MISS, -400)
516 519
517 // Unable to read from the disk cache. 520 // Unable to read from the disk cache.
518 NET_ERROR(CACHE_READ_FAILURE, -401) 521 NET_ERROR(CACHE_READ_FAILURE, -401)
519 522
520 // Unable to write to the disk cache. 523 // Unable to write to the disk cache.
521 NET_ERROR(CACHE_WRITE_FAILURE, -402) 524 NET_ERROR(CACHE_WRITE_FAILURE, -402)
522 525
523 // The operation is not supported for this entry. 526 // The operation is not supported for this entry.
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
636 NET_ERROR(DNS_SERVER_FAILED, -802) 639 NET_ERROR(DNS_SERVER_FAILED, -802)
637 640
638 // DNS transaction timed out. 641 // DNS transaction timed out.
639 NET_ERROR(DNS_TIMED_OUT, -803) 642 NET_ERROR(DNS_TIMED_OUT, -803)
640 643
641 // The entry was not found in cache, for cache-only lookups. 644 // The entry was not found in cache, for cache-only lookups.
642 NET_ERROR(DNS_CACHE_MISS, -804) 645 NET_ERROR(DNS_CACHE_MISS, -804)
643 646
644 // FIXME: Take the next number. 647 // FIXME: Take the next number.
645 NET_ERROR(PIPELINE_EVICTION, -900) 648 NET_ERROR(PIPELINE_EVICTION, -900)
OLDNEW
« no previous file with comments | « content/browser/download/download_resource_handler.cc ('k') | net/http/http_network_transaction_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698