| 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 <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 HostResolver* host_resolver, | 51 HostResolver* host_resolver, |
| 52 SSLConfigService* ssl_config_service, | 52 SSLConfigService* ssl_config_service, |
| 53 const base::WeakPtr<HttpServerProperties>& http_server_properties, | 53 const base::WeakPtr<HttpServerProperties>& http_server_properties, |
| 54 TransportSecurityState* transport_security_state, | 54 TransportSecurityState* transport_security_state, |
| 55 bool enable_compression, | 55 bool enable_compression, |
| 56 bool enable_ping_based_connection_checking, | 56 bool enable_ping_based_connection_checking, |
| 57 NextProto default_protocol, | 57 NextProto default_protocol, |
| 58 size_t session_max_recv_window_size, | 58 size_t session_max_recv_window_size, |
| 59 size_t stream_max_recv_window_size, | 59 size_t stream_max_recv_window_size, |
| 60 size_t initial_max_concurrent_streams, | 60 size_t initial_max_concurrent_streams, |
| 61 size_t max_concurrent_streams_limit, | |
| 62 SpdySessionPool::TimeFunc time_func, | 61 SpdySessionPool::TimeFunc time_func, |
| 63 const std::string& trusted_spdy_proxy); | 62 const std::string& trusted_spdy_proxy); |
| 64 ~SpdySessionPool() override; | 63 ~SpdySessionPool() override; |
| 65 | 64 |
| 66 // In the functions below, a session is "available" if this pool has | 65 // In the functions below, a session is "available" if this pool has |
| 67 // a reference to it and there is some SpdySessionKey for which | 66 // a reference to it and there is some SpdySessionKey for which |
| 68 // FindAvailableSession() will return it. A session is "unavailable" | 67 // FindAvailableSession() will return it. A session is "unavailable" |
| 69 // if this pool has a reference to it but it won't be returned by | 68 // if this pool has a reference to it but it won't be returned by |
| 70 // FindAvailableSession() for any SpdySessionKey; for example, this | 69 // FindAvailableSession() for any SpdySessionKey; for example, this |
| 71 // can happen when a session receives a GOAWAY frame and is still | 70 // can happen when a session receives a GOAWAY frame and is still |
| (...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 209 | 208 |
| 210 // Defaults to true. May be controlled via SpdySessionPoolPeer for tests. | 209 // Defaults to true. May be controlled via SpdySessionPoolPeer for tests. |
| 211 bool verify_domain_authentication_; | 210 bool verify_domain_authentication_; |
| 212 bool enable_sending_initial_data_; | 211 bool enable_sending_initial_data_; |
| 213 bool enable_compression_; | 212 bool enable_compression_; |
| 214 bool enable_ping_based_connection_checking_; | 213 bool enable_ping_based_connection_checking_; |
| 215 const NextProto default_protocol_; | 214 const NextProto default_protocol_; |
| 216 size_t session_max_recv_window_size_; | 215 size_t session_max_recv_window_size_; |
| 217 size_t stream_max_recv_window_size_; | 216 size_t stream_max_recv_window_size_; |
| 218 size_t initial_max_concurrent_streams_; | 217 size_t initial_max_concurrent_streams_; |
| 219 size_t max_concurrent_streams_limit_; | |
| 220 TimeFunc time_func_; | 218 TimeFunc time_func_; |
| 221 | 219 |
| 222 // This SPDY proxy is allowed to push resources from origins that are | 220 // This SPDY proxy is allowed to push resources from origins that are |
| 223 // different from those of their associated streams. | 221 // different from those of their associated streams. |
| 224 HostPortPair trusted_spdy_proxy_; | 222 HostPortPair trusted_spdy_proxy_; |
| 225 | 223 |
| 226 DISALLOW_COPY_AND_ASSIGN(SpdySessionPool); | 224 DISALLOW_COPY_AND_ASSIGN(SpdySessionPool); |
| 227 }; | 225 }; |
| 228 | 226 |
| 229 } // namespace net | 227 } // namespace net |
| 230 | 228 |
| 231 #endif // NET_SPDY_SPDY_SESSION_POOL_H_ | 229 #endif // NET_SPDY_SPDY_SESSION_POOL_H_ |
| OLD | NEW |