Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(139)

Side by Side Diff: net/socket/client_socket_pool_manager_impl.h

Issue 10916094: Move the NSS functions out of CertDatabase into a new NSSCertDatabase class. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed comments Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef NET_SOCKET_CLIENT_SOCKET_POOL_MANAGER_IMPL_H_ 5 #ifndef NET_SOCKET_CLIENT_SOCKET_POOL_MANAGER_IMPL_H_
6 #define NET_SOCKET_CLIENT_SOCKET_POOL_MANAGER_IMPL_H_ 6 #define NET_SOCKET_CLIENT_SOCKET_POOL_MANAGER_IMPL_H_
7 7
8 #include <map> 8 #include <map>
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 const HostPortPair& http_proxy) OVERRIDE; 82 const HostPortPair& http_proxy) OVERRIDE;
83 83
84 virtual SSLClientSocketPool* GetSocketPoolForSSLWithProxy( 84 virtual SSLClientSocketPool* GetSocketPoolForSSLWithProxy(
85 const HostPortPair& proxy_server) OVERRIDE; 85 const HostPortPair& proxy_server) OVERRIDE;
86 86
87 // Creates a Value summary of the state of the socket pools. The caller is 87 // Creates a Value summary of the state of the socket pools. The caller is
88 // responsible for deleting the returned value. 88 // responsible for deleting the returned value.
89 virtual base::Value* SocketPoolInfoToValue() const OVERRIDE; 89 virtual base::Value* SocketPoolInfoToValue() const OVERRIDE;
90 90
91 // CertDatabase::Observer methods: 91 // CertDatabase::Observer methods:
92 virtual void OnUserCertAdded(const X509Certificate* cert) OVERRIDE; 92 virtual void OnCertAdded(const X509Certificate* cert) OVERRIDE;
93 virtual void OnCertTrustChanged(const X509Certificate* cert) OVERRIDE; 93 virtual void OnCertTrustChanged(const X509Certificate* cert) OVERRIDE;
94 94
95 private: 95 private:
96 typedef internal::OwnedPoolMap<HostPortPair, TransportClientSocketPool*> 96 typedef internal::OwnedPoolMap<HostPortPair, TransportClientSocketPool*>
97 TransportSocketPoolMap; 97 TransportSocketPoolMap;
98 typedef internal::OwnedPoolMap<HostPortPair, SOCKSClientSocketPool*> 98 typedef internal::OwnedPoolMap<HostPortPair, SOCKSClientSocketPool*>
99 SOCKSSocketPoolMap; 99 SOCKSSocketPoolMap;
100 typedef internal::OwnedPoolMap<HostPortPair, HttpProxyClientSocketPool*> 100 typedef internal::OwnedPoolMap<HostPortPair, HttpProxyClientSocketPool*>
101 HTTPProxySocketPoolMap; 101 HTTPProxySocketPoolMap;
102 typedef internal::OwnedPoolMap<HostPortPair, SSLClientSocketPool*> 102 typedef internal::OwnedPoolMap<HostPortPair, SSLClientSocketPool*>
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 141
142 ClientSocketPoolHistograms ssl_socket_pool_for_proxies_histograms_; 142 ClientSocketPoolHistograms ssl_socket_pool_for_proxies_histograms_;
143 SSLSocketPoolMap ssl_socket_pools_for_proxies_; 143 SSLSocketPoolMap ssl_socket_pools_for_proxies_;
144 144
145 DISALLOW_COPY_AND_ASSIGN(ClientSocketPoolManagerImpl); 145 DISALLOW_COPY_AND_ASSIGN(ClientSocketPoolManagerImpl);
146 }; 146 };
147 147
148 } // namespace net 148 } // namespace net
149 149
150 #endif // NET_SOCKET_CLIENT_SOCKET_POOL_MANAGER_IMPL_H_ 150 #endif // NET_SOCKET_CLIENT_SOCKET_POOL_MANAGER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698