summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authormpcomplete@chromium.org <mpcomplete@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-10-21 22:25:42 +0000
committermpcomplete@chromium.org <mpcomplete@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-10-21 22:25:42 +0000
commit073e501cfce275852b138e41e01136814a39983d (patch)
treeb82b9726c6696fc744a63fe12e31c28bf2e9f9c0 /net
parent93d529cafc6423e431a88612dff69d06d4f0759f (diff)
downloadchromium_src-073e501cfce275852b138e41e01136814a39983d.zip
chromium_src-073e501cfce275852b138e41e01136814a39983d.tar.gz
chromium_src-073e501cfce275852b138e41e01136814a39983d.tar.bz2
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
Diffstat (limited to 'net')
-rw-r--r--net/base/net_error_list.h3
1 files changed, 3 insertions, 0 deletions
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)