summaryrefslogtreecommitdiffstats
path: root/net/base/net_error_list.h
diff options
context:
space:
mode:
authorcbentzel@chromium.org <cbentzel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-04-20 16:35:23 +0000
committercbentzel@chromium.org <cbentzel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-04-20 16:35:23 +0000
commit5543cbb5dbebd81b40c0f9f30d2a007bab9abbc8 (patch)
tree215fbd66a8fa4a8a42282f47bb76826c2b34d8df /net/base/net_error_list.h
parenta727dae7a83422afbb1051d1bb6666a4002f68c0 (diff)
downloadchromium_src-5543cbb5dbebd81b40c0f9f30d2a007bab9abbc8.zip
chromium_src-5543cbb5dbebd81b40c0f9f30d2a007bab9abbc8.tar.gz
chromium_src-5543cbb5dbebd81b40c0f9f30d2a007bab9abbc8.tar.bz2
Report cases where the connection appears to close too early while transferring an HTTP body.
This should not change behavior at all, but will let us see how commonly these situations happen in the wild. BUG=52847 TEST=Existing tests. Review URL: http://codereview.chromium.org/9950023 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@133208 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/base/net_error_list.h')
-rw-r--r--net/base/net_error_list.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/net/base/net_error_list.h b/net/base/net_error_list.h
index d308a6f..1cab980 100644
--- a/net/base/net_error_list.h
+++ b/net/base/net_error_list.h
@@ -519,6 +519,14 @@ NET_ERROR(SPDY_PING_FAILED, -352)
// The request couldn't be completed on an HTTP pipeline. Client should retry.
NET_ERROR(PIPELINE_EVICTION, -353)
+// The HTTP response body transferred fewer bytes than were advertised by the
+// Content-Length header when the connection is closed.
+NET_ERROR(CONTENT_LENGTH_MISMATCH, -354)
+
+// The HTTP response body is transferred with Chunked-Encoding, but the
+// terminating zero-length chunk was never sent when the connection is closed.
+NET_ERROR(INCOMPLETE_CHUNKED_ENCODING, -355)
+
// The cache does not have the requested entry.
NET_ERROR(CACHE_MISS, -400)