diff options
author | vandebo@chromium.org <vandebo@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-14 03:37:18 +0000 |
---|---|---|
committer | vandebo@chromium.org <vandebo@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-14 03:37:18 +0000 |
commit | e60e47ad57e7ff423c39cff9c88725a7aed85118 (patch) | |
tree | f8b53b60daa05f2e2c5df92ca333ad1283e389cc /net/socket/client_socket_pool.h | |
parent | 548adcb9cb9343fe542f82cc35ffaa8f8279dfb6 (diff) | |
download | chromium_src-e60e47ad57e7ff423c39cff9c88725a7aed85118.zip chromium_src-e60e47ad57e7ff423c39cff9c88725a7aed85118.tar.gz chromium_src-e60e47ad57e7ff423c39cff9c88725a7aed85118.tar.bz2 |
Implement SSLClientSocketPool.
To support SSLClientSocketPool, ClientSocketPoolBase and ClientSocketHandle require a notion of additional error state reported from the pool. Overtime the error handling may get become more integrated, alleviating the need for some of the additional error state.
To support getting Http Proxy credentials from the user, the SSLClientSocketPool will release unauthenticated HttpProxyClientSocket's into the pool as idle. However, it checks their authentication status when receiving one, completing the authentication once the user has provided the credentials.
BUG=30357
TEST=existing unit tests, ClientSocketPoolBaseTest.AdditionalErrorState*, SSLClientSocketPoolTest.*
Review URL: http://codereview.chromium.org/2870030
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@52275 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/socket/client_socket_pool.h')
-rw-r--r-- | net/socket/client_socket_pool.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/net/socket/client_socket_pool.h b/net/socket/client_socket_pool.h index 493fff1..b22da31 100644 --- a/net/socket/client_socket_pool.h +++ b/net/socket/client_socket_pool.h @@ -42,8 +42,9 @@ class ClientSocketPool : public base::RefCounted<ClientSocketPool> { // code is returned, but the |handle| is initialized with the new socket. // 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: PROXY_AUTH_REQUESTED and the errors - // accepted by IsCertificateError(err). + // The current recoverable errors are: the errors accepted by + // IsCertificateError(err) and PROXY_AUTH_REQUESTED 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 |