diff options
author | rvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-07-13 18:41:58 +0000 |
---|---|---|
committer | rvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-07-13 18:41:58 +0000 |
commit | e25d44ddde58a2e0fd05fd4e8f9c9632fb7209af (patch) | |
tree | 26054af3acf60a1109f76ba52ff4f827ae205e29 /net/base/net_error_list.h | |
parent | c369fd304932e51ad62cb3bd9cb5608665518e00 (diff) | |
download | chromium_src-e25d44ddde58a2e0fd05fd4e8f9c9632fb7209af.zip chromium_src-e25d44ddde58a2e0fd05fd4e8f9c9632fb7209af.tar.gz chromium_src-e25d44ddde58a2e0fd05fd4e8f9c9632fb7209af.tar.bz2 |
Disk cache: detect block files that are shorter than expected
and return a proper net error code from async IO.
BUG=88968
TEST=net_unittests
Review URL: http://codereview.chromium.org/7351007
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@92390 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/base/net_error_list.h')
-rw-r--r-- | net/base/net_error_list.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/base/net_error_list.h b/net/base/net_error_list.h index 80d770f..cff5a79 100644 --- a/net/base/net_error_list.h +++ b/net/base/net_error_list.h @@ -475,7 +475,8 @@ NET_ERROR(CACHE_MISS, -400) // Unable to read from the disk cache. NET_ERROR(CACHE_READ_FAILURE, -401) -// ****NOTE THAT code -402 is available**** +// Unable to write to the disk cache. +NET_ERROR(CACHE_WRITE_FAILURE, -402) // The operation is not supported for this entry. NET_ERROR(CACHE_OPERATION_NOT_SUPPORTED, -403) |