diff options
author | rch@chromium.org <rch@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-12-17 03:58:29 +0000 |
---|---|---|
committer | rch@chromium.org <rch@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-12-17 03:58:29 +0000 |
commit | 511f6f525dacf2512439b12784186074a0f6cd5c (patch) | |
tree | 5fa90bbe0fa255de3d78d00dcffd333830e13aea /net/socket/client_socket_pool.h | |
parent | 8aad42dcc8d683242c730901c51061de710046b9 (diff) | |
download | chromium_src-511f6f525dacf2512439b12784186074a0f6cd5c.zip chromium_src-511f6f525dacf2512439b12784186074a0f6cd5c.tar.gz chromium_src-511f6f525dacf2512439b12784186074a0f6cd5c.tar.bz2 |
Allow a non-200 (or non-407) response for a CONNECT request from an HTTPS proxy
to be consumed by chrome. Among other things, this will allow the proxy to
inform the user that the hostname could not be resolved or similar conditions.
This adds a new OnHttpsProxyTunnelConnectionResponse method to
StreamRequest::Delegate which is invoked when an HTTPS proxy returns a non-200,
non-407 response. The method is called with an HttpResponseInfor argument to
access the request headers, and an HttpStream argument to access the response body.
BUG=none
TEST=HttpNetworkTransactionTest
Review URL: http://codereview.chromium.org/4935001
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@69513 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/socket/client_socket_pool.h')
-rw-r--r-- | net/socket/client_socket_pool.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/socket/client_socket_pool.h b/net/socket/client_socket_pool.h index 23bb63f..c889ab4 100644 --- a/net/socket/client_socket_pool.h +++ b/net/socket/client_socket_pool.h @@ -45,8 +45,8 @@ class ClientSocketPool { // The caller must recover from the error before using the connection, or // Disconnect the socket before releasing or resetting the |handle|. // The current recoverable errors are: the errors accepted by - // IsCertificateError(err) and PROXY_AUTH_REQUESTED when reported by - // HttpProxyClientSocketPool. + // IsCertificateError(err) and PROXY_AUTH_REQUESTED, or + // HTTPS_PROXY_TUNNEL_RESPONSE when reported by HttpProxyClientSocketPool. // // If this function returns OK, then |handle| is initialized upon return. // The |handle|'s is_initialized method will return true in this case. If a |