diff options
author | vandebo@google.com <vandebo@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-02-24 00:58:46 +0000 |
---|---|---|
committer | vandebo@google.com <vandebo@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-02-24 00:58:46 +0000 |
commit | 9492e4abf1be2910ab72f300abb7e0f28118b434 (patch) | |
tree | 341551d0b61a7bbc4f7257fe9121d61c4b9d0af7 /net/base | |
parent | d46dbac87b6f581e4c6df3f79207081265a09f20 (diff) | |
download | chromium_src-9492e4abf1be2910ab72f300abb7e0f28118b434.zip chromium_src-9492e4abf1be2910ab72f300abb7e0f28118b434.tar.gz chromium_src-9492e4abf1be2910ab72f300abb7e0f28118b434.tar.bz2 |
Add ERR_END_OF_STREAM
Add new error code "END_OF_STREAM" and use it in HttpStreamParser.
Update a test to expect failure instead of success on an incomplete stream.
BUG=25032
TEST=updated unittests
Review URL: http://codereview.chromium.org/650190
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@39822 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/base')
-rw-r--r-- | net/base/net_error_list.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net/base/net_error_list.h b/net/base/net_error_list.h index e544897..db94f69 100644 --- a/net/base/net_error_list.h +++ b/net/base/net_error_list.h @@ -134,6 +134,9 @@ NET_ERROR(SOCKS_CONNECTION_FAILED, -120) // because that host is unreachable. NET_ERROR(SOCKS_CONNECTION_HOST_UNREACHABLE, -121) +// There is no more data left in the logical stream. +NET_ERROR(END_OF_STREAM, -122) + // Certificate error codes // // The values of certificate error codes must be consecutive. |