diff options
author | agl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-10-18 13:28:28 +0000 |
---|---|---|
committer | agl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-10-18 13:28:28 +0000 |
commit | 8281f7022c819a13d5d1741d2c1ff73aa4e994a9 (patch) | |
tree | 7fcb40be8d7a09b8a55800250a14d496fce5646c /net/socket/ssl_client_socket_nss.h | |
parent | 46aeaa8e2c32a014c9d4641ceb6e75954f0bb3a0 (diff) | |
download | chromium_src-8281f7022c819a13d5d1741d2c1ff73aa4e994a9.zip chromium_src-8281f7022c819a13d5d1741d2c1ff73aa4e994a9.tar.gz chromium_src-8281f7022c819a13d5d1741d2c1ff73aa4e994a9.tar.bz2 |
net: clean up SSLHostInfo construction.
Create an SSLHostInfoFactory interface and plumb it from the HttpCache
to the SSLConnectJob. Also, move the SSLHostInfo reference from the
ssl_config to being passed to the SSLClientSocket.
BUG=none
TEST=net_unittests
Review URL: http://codereview.chromium.org/3747003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@62918 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/socket/ssl_client_socket_nss.h')
-rw-r--r-- | net/socket/ssl_client_socket_nss.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/net/socket/ssl_client_socket_nss.h b/net/socket/ssl_client_socket_nss.h index db567c4..8518084 100644 --- a/net/socket/ssl_client_socket_nss.h +++ b/net/socket/ssl_client_socket_nss.h @@ -30,6 +30,7 @@ namespace net { class BoundNetLog; class CertVerifier; class ClientSocketHandle; +class SSLHostInfo; class X509Certificate; // An SSL client socket implemented with Mozilla NSS. @@ -41,7 +42,8 @@ class SSLClientSocketNSS : public SSLClientSocket { // settings. SSLClientSocketNSS(ClientSocketHandle* transport_socket, const std::string& hostname, - const SSLConfig& ssl_config); + const SSLConfig& ssl_config, + SSLHostInfo* ssl_host_info); ~SSLClientSocketNSS(); // SSLClientSocket methods: @@ -213,12 +215,14 @@ class SSLClientSocketNSS : public SSLClientSocket { // When performing Snap Start we need to predict the NPN protocol which the // server is going to speak before we actually perform the handshake. Thus - // the last NPN protocol used is serialised in |ssl_config.ssl_host_info| + // the last NPN protocol used is serialised in |ssl_host_info_| // and kept in these fields: SSLClientSocket::NextProtoStatus predicted_npn_status_; std::string predicted_npn_proto_; bool predicted_npn_proto_used_; + scoped_ptr<SSLHostInfo> ssl_host_info_; + #if defined(OS_WIN) // A CryptoAPI in-memory certificate store. We use it for two purposes: // 1. Import server certificates into this store so that we can verify and |