OLD | NEW |
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_SPDY_SPDY_SESSION_POOL_H_ | 5 #ifndef NET_SPDY_SPDY_SESSION_POOL_H_ |
6 #define NET_SPDY_SPDY_SESSION_POOL_H_ | 6 #define NET_SPDY_SPDY_SESSION_POOL_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 | 9 |
10 #include <map> | 10 #include <map> |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
138 | 138 |
139 // SSLConfigService::Observer methods: | 139 // SSLConfigService::Observer methods: |
140 | 140 |
141 // We perform the same flushing as described above when SSL settings change. | 141 // We perform the same flushing as described above when SSL settings change. |
142 void OnSSLConfigChanged() override; | 142 void OnSSLConfigChanged() override; |
143 | 143 |
144 // CertDatabase::Observer methods: | 144 // CertDatabase::Observer methods: |
145 | 145 |
146 // We perform the same flushing as described above when certificate database | 146 // We perform the same flushing as described above when certificate database |
147 // is changed. | 147 // is changed. |
148 void OnCertAdded(const X509Certificate* cert) override; | 148 void OnCertDBChanged(const X509Certificate* cert) override; |
149 void OnCACertChanged(const X509Certificate* cert) override; | |
150 | 149 |
151 private: | 150 private: |
152 friend class SpdySessionPoolPeer; // For testing. | 151 friend class SpdySessionPoolPeer; // For testing. |
153 | 152 |
154 typedef std::set<SpdySession*> SessionSet; | 153 typedef std::set<SpdySession*> SessionSet; |
155 typedef std::vector<base::WeakPtr<SpdySession> > WeakSessionList; | 154 typedef std::vector<base::WeakPtr<SpdySession> > WeakSessionList; |
156 typedef std::map<SpdySessionKey, base::WeakPtr<SpdySession> > | 155 typedef std::map<SpdySessionKey, base::WeakPtr<SpdySession> > |
157 AvailableSessionMap; | 156 AvailableSessionMap; |
158 typedef std::map<IPEndPoint, SpdySessionKey> AliasMap; | 157 typedef std::map<IPEndPoint, SpdySessionKey> AliasMap; |
159 typedef std::map<GURL, WeakSessionList> UnclaimedPushedStreamMap; | 158 typedef std::map<GURL, WeakSessionList> UnclaimedPushedStreamMap; |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
228 // resources from origins that are different from those of their associated | 227 // resources from origins that are different from those of their associated |
229 // streams. May be nullptr. | 228 // streams. May be nullptr. |
230 ProxyDelegate* proxy_delegate_; | 229 ProxyDelegate* proxy_delegate_; |
231 | 230 |
232 DISALLOW_COPY_AND_ASSIGN(SpdySessionPool); | 231 DISALLOW_COPY_AND_ASSIGN(SpdySessionPool); |
233 }; | 232 }; |
234 | 233 |
235 } // namespace net | 234 } // namespace net |
236 | 235 |
237 #endif // NET_SPDY_SPDY_SESSION_POOL_H_ | 236 #endif // NET_SPDY_SPDY_SESSION_POOL_H_ |
OLD | NEW |