| 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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 // First and last valid stream IDs. As we always act as the client, | 69 // First and last valid stream IDs. As we always act as the client, |
| 70 // start at 1 for the first stream id. | 70 // start at 1 for the first stream id. |
| 71 const SpdyStreamId kFirstStreamId = 1; | 71 const SpdyStreamId kFirstStreamId = 1; |
| 72 const SpdyStreamId kLastStreamId = 0x7fffffff; | 72 const SpdyStreamId kLastStreamId = 0x7fffffff; |
| 73 | 73 |
| 74 class BoundNetLog; | 74 class BoundNetLog; |
| 75 struct LoadTimingInfo; | 75 struct LoadTimingInfo; |
| 76 class SpdyStream; | 76 class SpdyStream; |
| 77 class SSLInfo; | 77 class SSLInfo; |
| 78 class TransportSecurityState; | 78 class TransportSecurityState; |
| 79 class TrustedSpdyProxyProvider; |
| 79 | 80 |
| 80 // NOTE: There's an enum of the same name (also with numeric suffixes) | 81 // NOTE: There's an enum of the same name (also with numeric suffixes) |
| 81 // in histograms.xml. Be sure to add new values there also. | 82 // in histograms.xml. Be sure to add new values there also. |
| 82 enum SpdyProtocolErrorDetails { | 83 enum SpdyProtocolErrorDetails { |
| 83 // SpdyFramer::SpdyError mappings. | 84 // SpdyFramer::SpdyError mappings. |
| 84 SPDY_ERROR_NO_ERROR = 0, | 85 SPDY_ERROR_NO_ERROR = 0, |
| 85 SPDY_ERROR_INVALID_CONTROL_FRAME = 1, | 86 SPDY_ERROR_INVALID_CONTROL_FRAME = 1, |
| 86 SPDY_ERROR_CONTROL_PAYLOAD_TOO_LARGE = 2, | 87 SPDY_ERROR_CONTROL_PAYLOAD_TOO_LARGE = 2, |
| 87 SPDY_ERROR_ZLIB_INIT_FAILURE = 3, | 88 SPDY_ERROR_ZLIB_INIT_FAILURE = 3, |
| 88 SPDY_ERROR_UNSUPPORTED_VERSION = 4, | 89 SPDY_ERROR_UNSUPPORTED_VERSION = 4, |
| (...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 245 TransportSecurityState* transport_security_state, | 246 TransportSecurityState* transport_security_state, |
| 246 bool verify_domain_authentication, | 247 bool verify_domain_authentication, |
| 247 bool enable_sending_initial_data, | 248 bool enable_sending_initial_data, |
| 248 bool enable_compression, | 249 bool enable_compression, |
| 249 bool enable_ping_based_connection_checking, | 250 bool enable_ping_based_connection_checking, |
| 250 NextProto default_protocol, | 251 NextProto default_protocol, |
| 251 size_t session_max_recv_window_size, | 252 size_t session_max_recv_window_size, |
| 252 size_t stream_max_recv_window_size, | 253 size_t stream_max_recv_window_size, |
| 253 size_t initial_max_concurrent_streams, | 254 size_t initial_max_concurrent_streams, |
| 254 TimeFunc time_func, | 255 TimeFunc time_func, |
| 255 const HostPortPair& trusted_spdy_proxy, | 256 const base::WeakPtr<TrustedSpdyProxyProvider>& |
| 257 trusted_spdy_proxy_provider, |
| 256 NetLog* net_log); | 258 NetLog* net_log); |
| 257 | 259 |
| 258 ~SpdySession() override; | 260 ~SpdySession() override; |
| 259 | 261 |
| 260 const HostPortPair& host_port_pair() const { | 262 const HostPortPair& host_port_pair() const { |
| 261 return spdy_session_key_.host_port_proxy_pair().first; | 263 return spdy_session_key_.host_port_proxy_pair().first; |
| 262 } | 264 } |
| 263 const HostPortProxyPair& host_port_proxy_pair() const { | 265 const HostPortProxyPair& host_port_proxy_pair() const { |
| 264 return spdy_session_key_.host_port_proxy_pair(); | 266 return spdy_session_key_.host_port_proxy_pair(); |
| 265 } | 267 } |
| (...skipping 948 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1214 // Used for posting asynchronous IO tasks. We use this even though | 1216 // Used for posting asynchronous IO tasks. We use this even though |
| 1215 // SpdySession is refcounted because we don't need to keep the SpdySession | 1217 // SpdySession is refcounted because we don't need to keep the SpdySession |
| 1216 // alive if the last reference is within a RunnableMethod. Just revoke the | 1218 // alive if the last reference is within a RunnableMethod. Just revoke the |
| 1217 // method. | 1219 // method. |
| 1218 base::WeakPtrFactory<SpdySession> weak_factory_; | 1220 base::WeakPtrFactory<SpdySession> weak_factory_; |
| 1219 }; | 1221 }; |
| 1220 | 1222 |
| 1221 } // namespace net | 1223 } // namespace net |
| 1222 | 1224 |
| 1223 #endif // NET_SPDY_SPDY_SESSION_H_ | 1225 #endif // NET_SPDY_SPDY_SESSION_H_ |
| OLD | NEW |