From da1e204fa55509cbb95fa215e53824b37ef54077 Mon Sep 17 00:00:00 2001 From: "rvargas@google.com" Date: Thu, 7 May 2009 01:25:01 +0000 Subject: Add two more error codes to net. BUG=9952 TEST=none Review URL: http://codereview.chromium.org/115006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@15488 0039d316-1c4b-4281-b951-d872f2087c98 --- net/http/http_cache.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'net/http') diff --git a/net/http/http_cache.cc b/net/http/http_cache.cc index 46bb64c..a5078de 100644 --- a/net/http/http_cache.cc +++ b/net/http/http_cache.cc @@ -688,7 +688,7 @@ int HttpCache::Transaction::BeginNetworkRequest() { network_trans_.reset(cache_->network_layer_->CreateTransaction()); if (!network_trans_.get()) - return net::ERR_FAILED; + return net::ERR_CACHE_CANNOT_CREATE_NETWORK_TRANSACTION; int rv = network_trans_->Start(request_, &network_info_callback_); if (rv != ERR_IO_PENDING) @@ -785,7 +785,7 @@ int HttpCache::Transaction::ReadResponseInfoFromEntry() { DCHECK(entry_); if (!HttpCache::ReadResponseInfo(entry_->disk_entry, &response_)) - return ERR_FAILED; + return ERR_CACHE_READ_FAILURE; // If the cache object is used for media file, we want the file handle of // response data. -- cgit v1.1