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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 public SSLConfigService::Observer, | 43 public SSLConfigService::Observer, |
44 public CertDatabase::Observer { | 44 public CertDatabase::Observer { |
45 public: | 45 public: |
46 typedef base::TimeTicks (*TimeFunc)(void); | 46 typedef base::TimeTicks (*TimeFunc)(void); |
47 | 47 |
48 SpdySessionPool(HostResolver* host_resolver, | 48 SpdySessionPool(HostResolver* host_resolver, |
49 SSLConfigService* ssl_config_service, | 49 SSLConfigService* ssl_config_service, |
50 HttpServerProperties* http_server_properties, | 50 HttpServerProperties* http_server_properties, |
51 TransportSecurityState* transport_security_state, | 51 TransportSecurityState* transport_security_state, |
52 bool enable_ping_based_connection_checking, | 52 bool enable_ping_based_connection_checking, |
53 bool enable_priority_dependencies, | |
54 size_t session_max_recv_window_size, | 53 size_t session_max_recv_window_size, |
55 size_t stream_max_recv_window_size, | 54 size_t stream_max_recv_window_size, |
56 SpdySessionPool::TimeFunc time_func, | 55 SpdySessionPool::TimeFunc time_func, |
57 ProxyDelegate* proxy_delegate); | 56 ProxyDelegate* proxy_delegate); |
58 ~SpdySessionPool() override; | 57 ~SpdySessionPool() override; |
59 | 58 |
60 // In the functions below, a session is "available" if this pool has | 59 // In the functions below, a session is "available" if this pool has |
61 // a reference to it and there is some SpdySessionKey for which | 60 // a reference to it and there is some SpdySessionKey for which |
62 // FindAvailableSession() will return it. A session is "unavailable" | 61 // FindAvailableSession() will return it. A session is "unavailable" |
63 // if this pool has a reference to it but it won't be returned by | 62 // if this pool has a reference to it but it won't be returned by |
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
214 // same GURL. | 213 // same GURL. |
215 UnclaimedPushedStreamMap unclaimed_pushed_streams_; | 214 UnclaimedPushedStreamMap unclaimed_pushed_streams_; |
216 | 215 |
217 const scoped_refptr<SSLConfigService> ssl_config_service_; | 216 const scoped_refptr<SSLConfigService> ssl_config_service_; |
218 HostResolver* const resolver_; | 217 HostResolver* const resolver_; |
219 | 218 |
220 // Defaults to true. May be controlled via SpdySessionPoolPeer for tests. | 219 // Defaults to true. May be controlled via SpdySessionPoolPeer for tests. |
221 bool verify_domain_authentication_; | 220 bool verify_domain_authentication_; |
222 bool enable_sending_initial_data_; | 221 bool enable_sending_initial_data_; |
223 bool enable_ping_based_connection_checking_; | 222 bool enable_ping_based_connection_checking_; |
224 const bool enable_priority_dependencies_; | |
225 size_t session_max_recv_window_size_; | 223 size_t session_max_recv_window_size_; |
226 size_t stream_max_recv_window_size_; | 224 size_t stream_max_recv_window_size_; |
227 TimeFunc time_func_; | 225 TimeFunc time_func_; |
228 | 226 |
229 // Determines if a proxy is a trusted SPDY proxy, which is allowed to push | 227 // Determines if a proxy is a trusted SPDY proxy, which is allowed to push |
230 // resources from origins that are different from those of their associated | 228 // resources from origins that are different from those of their associated |
231 // streams. May be nullptr. | 229 // streams. May be nullptr. |
232 ProxyDelegate* proxy_delegate_; | 230 ProxyDelegate* proxy_delegate_; |
233 | 231 |
234 DISALLOW_COPY_AND_ASSIGN(SpdySessionPool); | 232 DISALLOW_COPY_AND_ASSIGN(SpdySessionPool); |
235 }; | 233 }; |
236 | 234 |
237 } // namespace net | 235 } // namespace net |
238 | 236 |
239 #endif // NET_SPDY_SPDY_SESSION_POOL_H_ | 237 #endif // NET_SPDY_SPDY_SESSION_POOL_H_ |
OLD | NEW |