From 56c866a252b4a7dcb525b0b29bafc4de0168b7bb Mon Sep 17 00:00:00 2001 From: "wtc@chromium.org" <wtc@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> Date: Thu, 18 Jun 2009 19:38:58 +0000 Subject: Add a simple cache of certificates for SSL client authentication. It is based on FtpAuthCache and will be used in similar ways. The the only difference is that the authentication data is a certificate rather than username and password. R=eroman BUG=http://crbug.com/318 TEST=new unit tests. Review URL: http://codereview.chromium.org/132004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@18735 0039d316-1c4b-4281-b951-d872f2087c98 --- net/http/http_network_session.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'net/http/http_network_session.h') diff --git a/net/http/http_network_session.h b/net/http/http_network_session.h index c7ebb3c..d8345ca 100644 --- a/net/http/http_network_session.h +++ b/net/http/http_network_session.h @@ -1,4 +1,4 @@ -// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. +// Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. @@ -6,6 +6,7 @@ #define NET_HTTP_HTTP_NETWORK_SESSION_H_ #include "base/ref_counted.h" +#include "net/base/ssl_client_auth_cache.h" #include "net/base/ssl_config_service.h" #include "net/base/tcp_client_socket_pool.h" #include "net/http/http_auth_cache.h" @@ -29,6 +30,9 @@ class HttpNetworkSession : public base::RefCounted<HttpNetworkSession> { } HttpAuthCache* auth_cache() { return &auth_cache_; } + SSLClientAuthCache* ssl_client_auth_cache() { + return &ssl_client_auth_cache_; + } ClientSocketPool* connection_pool() { return connection_pool_; } HostResolver* host_resolver() { return host_resolver_; } ProxyService* proxy_service() { return proxy_service_; } @@ -45,6 +49,7 @@ class HttpNetworkSession : public base::RefCounted<HttpNetworkSession> { static int max_sockets_per_group_; HttpAuthCache auth_cache_; + SSLClientAuthCache ssl_client_auth_cache_; scoped_refptr<ClientSocketPool> connection_pool_; HostResolver* host_resolver_; ProxyService* proxy_service_; -- cgit v1.1