| 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 | 48 |
| 49 // |default_protocol| may be kProtoUnknown (e.g., if SPDY is | 49 // |default_protocol| may be kProtoUnknown (e.g., if SPDY is |
| 50 // disabled), in which case it's set to a default value. Otherwise, | 50 // disabled), in which case it's set to a default value. Otherwise, |
| 51 // it must be a SPDY protocol. | 51 // it must be a SPDY protocol. |
| 52 SpdySessionPool( | 52 SpdySessionPool( |
| 53 HostResolver* host_resolver, | 53 HostResolver* host_resolver, |
| 54 SSLConfigService* ssl_config_service, | 54 SSLConfigService* ssl_config_service, |
| 55 const base::WeakPtr<HttpServerProperties>& http_server_properties, | 55 const base::WeakPtr<HttpServerProperties>& http_server_properties, |
| 56 TransportSecurityState* transport_security_state, | 56 TransportSecurityState* transport_security_state, |
| 57 bool enable_ping_based_connection_checking, | 57 bool enable_ping_based_connection_checking, |
| 58 bool enable_priority_dependencies, |
| 58 NextProto default_protocol, | 59 NextProto default_protocol, |
| 59 size_t session_max_recv_window_size, | 60 size_t session_max_recv_window_size, |
| 60 size_t stream_max_recv_window_size, | 61 size_t stream_max_recv_window_size, |
| 61 SpdySessionPool::TimeFunc time_func, | 62 SpdySessionPool::TimeFunc time_func, |
| 62 ProxyDelegate* proxy_delegate); | 63 ProxyDelegate* proxy_delegate); |
| 63 ~SpdySessionPool() override; | 64 ~SpdySessionPool() override; |
| 64 | 65 |
| 65 // In the functions below, a session is "available" if this pool has | 66 // In the functions below, a session is "available" if this pool has |
| 66 // a reference to it and there is some SpdySessionKey for which | 67 // a reference to it and there is some SpdySessionKey for which |
| 67 // FindAvailableSession() will return it. A session is "unavailable" | 68 // FindAvailableSession() will return it. A session is "unavailable" |
| (...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 202 // A map of IPEndPoint aliases for sessions. | 203 // A map of IPEndPoint aliases for sessions. |
| 203 AliasMap aliases_; | 204 AliasMap aliases_; |
| 204 | 205 |
| 205 const scoped_refptr<SSLConfigService> ssl_config_service_; | 206 const scoped_refptr<SSLConfigService> ssl_config_service_; |
| 206 HostResolver* const resolver_; | 207 HostResolver* const resolver_; |
| 207 | 208 |
| 208 // Defaults to true. May be controlled via SpdySessionPoolPeer for tests. | 209 // Defaults to true. May be controlled via SpdySessionPoolPeer for tests. |
| 209 bool verify_domain_authentication_; | 210 bool verify_domain_authentication_; |
| 210 bool enable_sending_initial_data_; | 211 bool enable_sending_initial_data_; |
| 211 bool enable_ping_based_connection_checking_; | 212 bool enable_ping_based_connection_checking_; |
| 213 const bool enable_priority_dependencies_; |
| 212 const NextProto default_protocol_; | 214 const NextProto default_protocol_; |
| 213 size_t session_max_recv_window_size_; | 215 size_t session_max_recv_window_size_; |
| 214 size_t stream_max_recv_window_size_; | 216 size_t stream_max_recv_window_size_; |
| 215 TimeFunc time_func_; | 217 TimeFunc time_func_; |
| 216 | 218 |
| 217 // Determines if a proxy is a trusted SPDY proxy, which is allowed to push | 219 // Determines if a proxy is a trusted SPDY proxy, which is allowed to push |
| 218 // resources from origins that are different from those of their associated | 220 // resources from origins that are different from those of their associated |
| 219 // streams. May be nullptr. | 221 // streams. May be nullptr. |
| 220 ProxyDelegate* proxy_delegate_; | 222 ProxyDelegate* proxy_delegate_; |
| 221 | 223 |
| 222 DISALLOW_COPY_AND_ASSIGN(SpdySessionPool); | 224 DISALLOW_COPY_AND_ASSIGN(SpdySessionPool); |
| 223 }; | 225 }; |
| 224 | 226 |
| 225 } // namespace net | 227 } // namespace net |
| 226 | 228 |
| 227 #endif // NET_SPDY_SPDY_SESSION_POOL_H_ | 229 #endif // NET_SPDY_SPDY_SESSION_POOL_H_ |
| OLD | NEW |