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