From 073e501cfce275852b138e41e01136814a39983d Mon Sep 17 00:00:00 2001 From: "mpcomplete@chromium.org" Date: Fri, 21 Oct 2011 22:25:42 +0000 Subject: Use a better error code for when an extension blocks a network request using the webrequest API. BUG=97392 TEST=install a webrequest extension like AdBlock+ experimental and navigate to a URL that is blocked. You should see a descriptive error message. Review URL: http://codereview.chromium.org/8345032 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@106794 0039d316-1c4b-4281-b951-d872f2087c98 --- net/base/net_error_list.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'net') diff --git a/net/base/net_error_list.h b/net/base/net_error_list.h index ca63445..2f96f86 100644 --- a/net/base/net_error_list.h +++ b/net/base/net_error_list.h @@ -81,6 +81,9 @@ NET_ERROR(FILE_NO_SPACE, -18) // The file has a virus. NET_ERROR(FILE_VIRUS_INFECTED, -19) +// The client chose to block the request. +NET_ERROR(BLOCKED_BY_CLIENT, -20) + // A connection was closed (corresponding to a TCP FIN). NET_ERROR(CONNECTION_CLOSED, -100) -- cgit v1.1