| 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 #include "net/spdy/spdy_session_pool.h" | 5 #include "net/spdy/spdy_session_pool.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "base/metrics/histogram_macros.h" | 10 #include "base/metrics/histogram_macros.h" |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 FOUND_EXISTING_FROM_IP_POOL = 2, | 27 FOUND_EXISTING_FROM_IP_POOL = 2, |
| 28 IMPORTED_FROM_SOCKET = 3, | 28 IMPORTED_FROM_SOCKET = 3, |
| 29 SPDY_SESSION_GET_MAX = 4 | 29 SPDY_SESSION_GET_MAX = 4 |
| 30 }; | 30 }; |
| 31 | 31 |
| 32 } // namespace | 32 } // namespace |
| 33 | 33 |
| 34 SpdySessionPool::SpdySessionPool( | 34 SpdySessionPool::SpdySessionPool( |
| 35 HostResolver* resolver, | 35 HostResolver* resolver, |
| 36 SSLConfigService* ssl_config_service, | 36 SSLConfigService* ssl_config_service, |
| 37 const base::WeakPtr<HttpServerProperties>& http_server_properties, | 37 HttpServerProperties* const http_server_properties, |
| 38 TransportSecurityState* transport_security_state, | 38 TransportSecurityState* transport_security_state, |
| 39 bool enable_ping_based_connection_checking, | 39 bool enable_ping_based_connection_checking, |
| 40 bool enable_priority_dependencies, | 40 bool enable_priority_dependencies, |
| 41 NextProto default_protocol, | 41 NextProto default_protocol, |
| 42 size_t session_max_recv_window_size, | 42 size_t session_max_recv_window_size, |
| 43 size_t stream_max_recv_window_size, | 43 size_t stream_max_recv_window_size, |
| 44 SpdySessionPool::TimeFunc time_func, | 44 SpdySessionPool::TimeFunc time_func, |
| 45 ProxyDelegate* proxy_delegate) | 45 ProxyDelegate* proxy_delegate) |
| 46 : http_server_properties_(http_server_properties), | 46 : http_server_properties_(http_server_properties), |
| 47 transport_security_state_(transport_security_state), | 47 transport_security_state_(transport_security_state), |
| (...skipping 401 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 449 | 449 |
| 450 if (idle_only && (*it)->is_active()) | 450 if (idle_only && (*it)->is_active()) |
| 451 continue; | 451 continue; |
| 452 | 452 |
| 453 (*it)->CloseSessionOnError(error, description); | 453 (*it)->CloseSessionOnError(error, description); |
| 454 DCHECK(!IsSessionAvailable(*it)); | 454 DCHECK(!IsSessionAvailable(*it)); |
| 455 } | 455 } |
| 456 } | 456 } |
| 457 | 457 |
| 458 } // namespace net | 458 } // namespace net |
| OLD | NEW |