| 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 <map> | 8 #include <map> |
| 9 #include <list> | 9 #include <list> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 127 virtual void OnSSLConfigChanged() OVERRIDE; | 127 virtual void OnSSLConfigChanged() OVERRIDE; |
| 128 | 128 |
| 129 // A debugging mode where we compress all accesses through a single domain. | 129 // A debugging mode where we compress all accesses through a single domain. |
| 130 static void ForceSingleDomain() { g_force_single_domain = true; } | 130 static void ForceSingleDomain() { g_force_single_domain = true; } |
| 131 | 131 |
| 132 // Controls whether the pool allows use of a common session for domains | 132 // Controls whether the pool allows use of a common session for domains |
| 133 // which share IP address resolutions. | 133 // which share IP address resolutions. |
| 134 static void enable_ip_pooling(bool value) { g_enable_ip_pooling = value; } | 134 static void enable_ip_pooling(bool value) { g_enable_ip_pooling = value; } |
| 135 | 135 |
| 136 // CertDatabase::Observer methods: | 136 // CertDatabase::Observer methods: |
| 137 virtual void OnUserCertAdded(const X509Certificate* cert) OVERRIDE; | 137 virtual void OnCertAdded(const X509Certificate* cert) OVERRIDE; |
| 138 virtual void OnCertTrustChanged(const X509Certificate* cert) OVERRIDE; | 138 virtual void OnCertTrustChanged(const X509Certificate* cert) OVERRIDE; |
| 139 | 139 |
| 140 private: | 140 private: |
| 141 friend class test_spdy2::SpdySessionPoolPeer; // For testing. | 141 friend class test_spdy2::SpdySessionPoolPeer; // For testing. |
| 142 friend class test_spdy3::SpdySessionPoolPeer; // For testing. | 142 friend class test_spdy3::SpdySessionPoolPeer; // For testing. |
| 143 friend class SpdyNetworkTransactionSpdy2Test; // For testing. | 143 friend class SpdyNetworkTransactionSpdy2Test; // For testing. |
| 144 friend class SpdyNetworkTransactionSpdy3Test; // For testing. | 144 friend class SpdyNetworkTransactionSpdy3Test; // For testing. |
| 145 FRIEND_TEST_ALL_PREFIXES(SpdyNetworkTransactionSpdy2Test, | 145 FRIEND_TEST_ALL_PREFIXES(SpdyNetworkTransactionSpdy2Test, |
| 146 WindowUpdateOverflow); | 146 WindowUpdateOverflow); |
| 147 FRIEND_TEST_ALL_PREFIXES(SpdyNetworkTransactionSpdy3Test, | 147 FRIEND_TEST_ALL_PREFIXES(SpdyNetworkTransactionSpdy3Test, |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 212 // This SPDY proxy is allowed to push resources from origins that are | 212 // This SPDY proxy is allowed to push resources from origins that are |
| 213 // different from those of their associated streams. | 213 // different from those of their associated streams. |
| 214 HostPortPair trusted_spdy_proxy_; | 214 HostPortPair trusted_spdy_proxy_; |
| 215 | 215 |
| 216 DISALLOW_COPY_AND_ASSIGN(SpdySessionPool); | 216 DISALLOW_COPY_AND_ASSIGN(SpdySessionPool); |
| 217 }; | 217 }; |
| 218 | 218 |
| 219 } // namespace net | 219 } // namespace net |
| 220 | 220 |
| 221 #endif // NET_SPDY_SPDY_SESSION_POOL_H_ | 221 #endif // NET_SPDY_SPDY_SESSION_POOL_H_ |
| OLD | NEW |