From a74c9d049e625be4b542697e1a77c10364dc7cd2 Mon Sep 17 00:00:00 2001 From: "ericroman@google.com" Date: Wed, 22 Oct 2008 20:17:54 +0000 Subject: Add a net error code for not implemented. Review URL: http://codereview.chromium.org/7855 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@3758 0039d316-1c4b-4281-b951-d872f2087c98 --- net/base/net_error_list.h | 3 +++ net/proxy/proxy_resolver_null.h | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) (limited to 'net') diff --git a/net/base/net_error_list.h b/net/base/net_error_list.h index 35e0a24..6e1d642 100644 --- a/net/base/net_error_list.h +++ b/net/base/net_error_list.h @@ -38,6 +38,9 @@ NET_ERROR(UNEXPECTED, -9) // Permission to access a resource was denied. NET_ERROR(ACCESS_DENIED, -10) +// The operation failed because of unimplemented functionality. +NET_ERROR(NOT_IMPLEMENTED, -11) + // A connection was closed (corresponding to a TCP FIN). NET_ERROR(CONNECTION_CLOSED, -100) diff --git a/net/proxy/proxy_resolver_null.h b/net/proxy/proxy_resolver_null.h index b9f0b32..17276e8 100644 --- a/net/proxy/proxy_resolver_null.h +++ b/net/proxy/proxy_resolver_null.h @@ -13,12 +13,12 @@ namespace net { class ProxyResolverNull : public ProxyResolver { public: virtual int GetProxyConfig(ProxyConfig* config) { - return ERR_FAILED; + return ERR_NOT_IMPLEMENTED; } virtual int GetProxyForURL(const std::string& query_url, const std::string& pac_url, ProxyInfo* results) { - return ERR_FAILED; + return ERR_NOT_IMPLEMENTED; } }; -- cgit v1.1