summaryrefslogtreecommitdiffstats
path: root/net/http/http_network_session.h
diff options
context:
space:
mode:
authorwtc@chromium.org <wtc@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-18 19:38:58 +0000
committerwtc@chromium.org <wtc@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-18 19:38:58 +0000
commit56c866a252b4a7dcb525b0b29bafc4de0168b7bb (patch)
tree3eb4f9f77dede3481a05e9e2d730dbace83d13fd /net/http/http_network_session.h
parent1a041bb64d411c1902e005cdc1a904607016f707 (diff)
downloadchromium_src-56c866a252b4a7dcb525b0b29bafc4de0168b7bb.zip
chromium_src-56c866a252b4a7dcb525b0b29bafc4de0168b7bb.tar.gz
chromium_src-56c866a252b4a7dcb525b0b29bafc4de0168b7bb.tar.bz2
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
Diffstat (limited to 'net/http/http_network_session.h')
-rw-r--r--net/http/http_network_session.h7
1 files changed, 6 insertions, 1 deletions
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_;