| 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_CHROMIUM_SPDY_SESSION_H_ | 5 #ifndef NET_SPDY_CHROMIUM_SPDY_SESSION_H_ |
| 6 #define NET_SPDY_CHROMIUM_SPDY_SESSION_H_ | 6 #define NET_SPDY_CHROMIUM_SPDY_SESSION_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 295 const SpdyString& new_hostname); | 295 const SpdyString& new_hostname); |
| 296 | 296 |
| 297 // Create a new SpdySession. | 297 // Create a new SpdySession. |
| 298 // |spdy_session_key| is the host/port that this session connects to, privacy | 298 // |spdy_session_key| is the host/port that this session connects to, privacy |
| 299 // and proxy configuration settings that it's using. | 299 // and proxy configuration settings that it's using. |
| 300 // |session| is the HttpNetworkSession. |net_log| is the NetLog that we log | 300 // |session| is the HttpNetworkSession. |net_log| is the NetLog that we log |
| 301 // network events to. | 301 // network events to. |
| 302 SpdySession(const SpdySessionKey& spdy_session_key, | 302 SpdySession(const SpdySessionKey& spdy_session_key, |
| 303 HttpServerProperties* http_server_properties, | 303 HttpServerProperties* http_server_properties, |
| 304 TransportSecurityState* transport_security_state, | 304 TransportSecurityState* transport_security_state, |
| 305 const QuicVersionVector& quic_supported_versions, |
| 305 bool enable_sending_initial_data, | 306 bool enable_sending_initial_data, |
| 306 bool enable_ping_based_connection_checking, | 307 bool enable_ping_based_connection_checking, |
| 307 size_t session_max_recv_window_size, | 308 size_t session_max_recv_window_size, |
| 308 const SettingsMap& initial_settings, | 309 const SettingsMap& initial_settings, |
| 309 TimeFunc time_func, | 310 TimeFunc time_func, |
| 310 ServerPushDelegate* push_delegate, | 311 ServerPushDelegate* push_delegate, |
| 311 ProxyDelegate* proxy_delegate, | 312 ProxyDelegate* proxy_delegate, |
| 312 NetLog* net_log); | 313 NetLog* net_log); |
| 313 | 314 |
| 314 ~SpdySession() override; | 315 ~SpdySession() override; |
| (...skipping 863 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1178 // created streams will use this value for the initial receive | 1179 // created streams will use this value for the initial receive |
| 1179 // window size. | 1180 // window size. |
| 1180 int32_t stream_max_recv_window_size_; | 1181 int32_t stream_max_recv_window_size_; |
| 1181 | 1182 |
| 1182 // A queue of stream IDs that have been send-stalled at some point | 1183 // A queue of stream IDs that have been send-stalled at some point |
| 1183 // in the past. | 1184 // in the past. |
| 1184 std::deque<SpdyStreamId> stream_send_unstall_queue_[NUM_PRIORITIES]; | 1185 std::deque<SpdyStreamId> stream_send_unstall_queue_[NUM_PRIORITIES]; |
| 1185 | 1186 |
| 1186 NetLogWithSource net_log_; | 1187 NetLogWithSource net_log_; |
| 1187 | 1188 |
| 1189 // Versions of QUIC which may be used. |
| 1190 const QuicVersionVector quic_supported_versions_; |
| 1191 |
| 1188 // Outside of tests, these should always be true. | 1192 // Outside of tests, these should always be true. |
| 1189 bool enable_sending_initial_data_; | 1193 bool enable_sending_initial_data_; |
| 1190 bool enable_ping_based_connection_checking_; | 1194 bool enable_ping_based_connection_checking_; |
| 1191 | 1195 |
| 1192 // |connection_at_risk_of_loss_time_| is an optimization to avoid sending | 1196 // |connection_at_risk_of_loss_time_| is an optimization to avoid sending |
| 1193 // wasteful preface pings (when we just got some data). | 1197 // wasteful preface pings (when we just got some data). |
| 1194 // | 1198 // |
| 1195 // If it is zero (the most conservative figure), then we always send the | 1199 // If it is zero (the most conservative figure), then we always send the |
| 1196 // preface ping (when none are in flight). | 1200 // preface ping (when none are in flight). |
| 1197 // | 1201 // |
| (...skipping 25 matching lines...) Expand all Loading... |
| 1223 // Used for posting asynchronous IO tasks. We use this even though | 1227 // Used for posting asynchronous IO tasks. We use this even though |
| 1224 // SpdySession is refcounted because we don't need to keep the SpdySession | 1228 // SpdySession is refcounted because we don't need to keep the SpdySession |
| 1225 // alive if the last reference is within a RunnableMethod. Just revoke the | 1229 // alive if the last reference is within a RunnableMethod. Just revoke the |
| 1226 // method. | 1230 // method. |
| 1227 base::WeakPtrFactory<SpdySession> weak_factory_; | 1231 base::WeakPtrFactory<SpdySession> weak_factory_; |
| 1228 }; | 1232 }; |
| 1229 | 1233 |
| 1230 } // namespace net | 1234 } // namespace net |
| 1231 | 1235 |
| 1232 #endif // NET_SPDY_CHROMIUM_SPDY_SESSION_H_ | 1236 #endif // NET_SPDY_CHROMIUM_SPDY_SESSION_H_ |
| OLD | NEW |