| 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_H_ | 5 #ifndef NET_SPDY_SPDY_SESSION_H_ |
| 6 #define NET_SPDY_SPDY_SESSION_H_ | 6 #define NET_SPDY_SPDY_SESSION_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 287 const std::string& new_hostname); | 287 const std::string& new_hostname); |
| 288 | 288 |
| 289 // Create a new SpdySession. | 289 // Create a new SpdySession. |
| 290 // |spdy_session_key| is the host/port that this session connects to, privacy | 290 // |spdy_session_key| is the host/port that this session connects to, privacy |
| 291 // and proxy configuration settings that it's using. | 291 // and proxy configuration settings that it's using. |
| 292 // |session| is the HttpNetworkSession. |net_log| is the NetLog that we log | 292 // |session| is the HttpNetworkSession. |net_log| is the NetLog that we log |
| 293 // network events to. | 293 // network events to. |
| 294 SpdySession(const SpdySessionKey& spdy_session_key, | 294 SpdySession(const SpdySessionKey& spdy_session_key, |
| 295 HttpServerProperties* http_server_properties, | 295 HttpServerProperties* http_server_properties, |
| 296 TransportSecurityState* transport_security_state, | 296 TransportSecurityState* transport_security_state, |
| 297 bool verify_domain_authentication, | |
| 298 bool enable_sending_initial_data, | 297 bool enable_sending_initial_data, |
| 299 bool enable_ping_based_connection_checking, | 298 bool enable_ping_based_connection_checking, |
| 300 size_t session_max_recv_window_size, | 299 size_t session_max_recv_window_size, |
| 301 size_t stream_max_recv_window_size, | 300 size_t stream_max_recv_window_size, |
| 302 TimeFunc time_func, | 301 TimeFunc time_func, |
| 303 ProxyDelegate* proxy_delegate, | 302 ProxyDelegate* proxy_delegate, |
| 304 NetLog* net_log); | 303 NetLog* net_log); |
| 305 | 304 |
| 306 ~SpdySession() override; | 305 ~SpdySession() override; |
| 307 | 306 |
| (...skipping 857 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1165 // window size. | 1164 // window size. |
| 1166 int32_t stream_max_recv_window_size_; | 1165 int32_t stream_max_recv_window_size_; |
| 1167 | 1166 |
| 1168 // A queue of stream IDs that have been send-stalled at some point | 1167 // A queue of stream IDs that have been send-stalled at some point |
| 1169 // in the past. | 1168 // in the past. |
| 1170 std::deque<SpdyStreamId> stream_send_unstall_queue_[NUM_PRIORITIES]; | 1169 std::deque<SpdyStreamId> stream_send_unstall_queue_[NUM_PRIORITIES]; |
| 1171 | 1170 |
| 1172 NetLogWithSource net_log_; | 1171 NetLogWithSource net_log_; |
| 1173 | 1172 |
| 1174 // Outside of tests, these should always be true. | 1173 // Outside of tests, these should always be true. |
| 1175 bool verify_domain_authentication_; | |
| 1176 bool enable_sending_initial_data_; | 1174 bool enable_sending_initial_data_; |
| 1177 bool enable_ping_based_connection_checking_; | 1175 bool enable_ping_based_connection_checking_; |
| 1178 | 1176 |
| 1179 // |connection_at_risk_of_loss_time_| is an optimization to avoid sending | 1177 // |connection_at_risk_of_loss_time_| is an optimization to avoid sending |
| 1180 // wasteful preface pings (when we just got some data). | 1178 // wasteful preface pings (when we just got some data). |
| 1181 // | 1179 // |
| 1182 // If it is zero (the most conservative figure), then we always send the | 1180 // If it is zero (the most conservative figure), then we always send the |
| 1183 // preface ping (when none are in flight). | 1181 // preface ping (when none are in flight). |
| 1184 // | 1182 // |
| 1185 // It is common for TCP/IP sessions to time out in about 3-5 minutes. | 1183 // It is common for TCP/IP sessions to time out in about 3-5 minutes. |
| (...skipping 24 matching lines...) Expand all Loading... |
| 1210 // Used for posting asynchronous IO tasks. We use this even though | 1208 // Used for posting asynchronous IO tasks. We use this even though |
| 1211 // SpdySession is refcounted because we don't need to keep the SpdySession | 1209 // SpdySession is refcounted because we don't need to keep the SpdySession |
| 1212 // alive if the last reference is within a RunnableMethod. Just revoke the | 1210 // alive if the last reference is within a RunnableMethod. Just revoke the |
| 1213 // method. | 1211 // method. |
| 1214 base::WeakPtrFactory<SpdySession> weak_factory_; | 1212 base::WeakPtrFactory<SpdySession> weak_factory_; |
| 1215 }; | 1213 }; |
| 1216 | 1214 |
| 1217 } // namespace net | 1215 } // namespace net |
| 1218 | 1216 |
| 1219 #endif // NET_SPDY_SPDY_SESSION_H_ | 1217 #endif // NET_SPDY_SPDY_SESSION_H_ |
| OLD | NEW |