summaryrefslogtreecommitdiffstats
path: root/webkit/plugins
diff options
context:
space:
mode:
authorncbray@chromium.org <ncbray@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-11-05 20:48:59 +0000
committerncbray@chromium.org <ncbray@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-11-05 20:48:59 +0000
commit579be3b6fa6b775d73ff893117231e9f10476df2 (patch)
tree3e72429e4e0806e727b7e2cc731e1e2bc8358c64 /webkit/plugins
parent654a84f9bde2550d3db5936555db12f065898a77 (diff)
downloadchromium_src-579be3b6fa6b775d73ff893117231e9f10476df2.zip
chromium_src-579be3b6fa6b775d73ff893117231e9f10476df2.tar.gz
chromium_src-579be3b6fa6b775d73ff893117231e9f10476df2.tar.bz2
Mark PPAPI requests that fail due to surfaway as PP_ERROR_ABORTED.
This will allow NaCl to distinguish between surfaways and more significant load failiures. BUG= none Review URL: https://chromiumcodereview.appspot.com/11358075 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@166029 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/plugins')
-rw-r--r--webkit/plugins/ppapi/ppb_url_loader_impl.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/webkit/plugins/ppapi/ppb_url_loader_impl.cc b/webkit/plugins/ppapi/ppb_url_loader_impl.cc
index 81e5a0d..cd2758e 100644
--- a/webkit/plugins/ppapi/ppb_url_loader_impl.cc
+++ b/webkit/plugins/ppapi/ppb_url_loader_impl.cc
@@ -374,6 +374,9 @@ void PPB_URLLoader_Impl::didFail(WebURLLoader* loader,
// TODO(bbudge): Extend pp_errors.h to cover interesting network errors
// from the net error domain.
switch (error.reason) {
+ case net::ERR_ABORTED:
+ pp_error = PP_ERROR_ABORTED;
+ break;
case net::ERR_ACCESS_DENIED:
case net::ERR_NETWORK_ACCESS_DENIED:
pp_error = PP_ERROR_NOACCESS;