summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorericroman@google.com <ericroman@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-10-22 20:17:54 +0000
committerericroman@google.com <ericroman@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-10-22 20:17:54 +0000
commita74c9d049e625be4b542697e1a77c10364dc7cd2 (patch)
tree2986977e58e03b524565a41246d709a8780dbd97
parent9e97a4b455b06efff44840b9fc9e470e1e2968f3 (diff)
downloadchromium_src-a74c9d049e625be4b542697e1a77c10364dc7cd2.zip
chromium_src-a74c9d049e625be4b542697e1a77c10364dc7cd2.tar.gz
chromium_src-a74c9d049e625be4b542697e1a77c10364dc7cd2.tar.bz2
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
-rw-r--r--net/base/net_error_list.h3
-rw-r--r--net/proxy/proxy_resolver_null.h4
2 files changed, 5 insertions, 2 deletions
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;
}
};