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/ssl_client_socket_mac.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/ssl_client_socket_mac.h')
-rw-r--r-- | net/socket/ssl_client_socket_mac.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/net/socket/ssl_client_socket_mac.h b/net/socket/ssl_client_socket_mac.h index bb25bda..dc2ed65 100644 --- a/net/socket/ssl_client_socket_mac.h +++ b/net/socket/ssl_client_socket_mac.h @@ -20,6 +20,7 @@ namespace net { class CertVerifier; +class ClientSocketHandle; // An SSL client socket implemented with Secure Transport. class SSLClientSocketMac : public SSLClientSocket { @@ -28,7 +29,7 @@ class SSLClientSocketMac : public SSLClientSocket { // The given hostname will be compared with the name(s) in the server's // certificate during the SSL handshake. ssl_config specifies the SSL // settings. - SSLClientSocketMac(ClientSocket* transport_socket, + SSLClientSocketMac(ClientSocketHandle* transport_socket, const std::string& hostname, const SSLConfig& ssl_config); ~SSLClientSocketMac(); @@ -88,7 +89,7 @@ class SSLClientSocketMac : public SSLClientSocket { CompletionCallbackImpl<SSLClientSocketMac> transport_read_callback_; CompletionCallbackImpl<SSLClientSocketMac> transport_write_callback_; - scoped_ptr<ClientSocket> transport_; + scoped_ptr<ClientSocketHandle> transport_; std::string hostname_; SSLConfig ssl_config_; |