| 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 <deque> | 8 #include <deque> |
| 9 #include <map> | 9 #include <map> |
| 10 #include <set> | 10 #include <set> |
| (...skipping 966 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 977 TransportSecurityState* transport_security_state_; | 977 TransportSecurityState* transport_security_state_; |
| 978 | 978 |
| 979 // The socket handle for this session. | 979 // The socket handle for this session. |
| 980 scoped_ptr<ClientSocketHandle> connection_; | 980 scoped_ptr<ClientSocketHandle> connection_; |
| 981 | 981 |
| 982 // The read buffer used to read data from the socket. | 982 // The read buffer used to read data from the socket. |
| 983 scoped_refptr<IOBuffer> read_buffer_; | 983 scoped_refptr<IOBuffer> read_buffer_; |
| 984 | 984 |
| 985 SpdyStreamId stream_hi_water_mark_; // The next stream id to use. | 985 SpdyStreamId stream_hi_water_mark_; // The next stream id to use. |
| 986 | 986 |
| 987 // Used to ensure the server increments push stream ids correctly. |
| 988 SpdyStreamId last_accepted_push_stream_id_; |
| 989 |
| 987 // Queue, for each priority, of pending stream requests that have | 990 // Queue, for each priority, of pending stream requests that have |
| 988 // not yet been satisfied. | 991 // not yet been satisfied. |
| 989 PendingStreamRequestQueue pending_create_stream_queues_[NUM_PRIORITIES]; | 992 PendingStreamRequestQueue pending_create_stream_queues_[NUM_PRIORITIES]; |
| 990 | 993 |
| 991 // Map from stream id to all active streams. Streams are active in the sense | 994 // Map from stream id to all active streams. Streams are active in the sense |
| 992 // that they have a consumer (typically SpdyNetworkTransaction and regardless | 995 // that they have a consumer (typically SpdyNetworkTransaction and regardless |
| 993 // of whether or not there is currently any ongoing IO [might be waiting for | 996 // of whether or not there is currently any ongoing IO [might be waiting for |
| 994 // the server to start pushing the stream]) or there are still network events | 997 // the server to start pushing the stream]) or there are still network events |
| 995 // incoming even though the consumer has already gone away (cancellation). | 998 // incoming even though the consumer has already gone away (cancellation). |
| 996 // | 999 // |
| (...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1170 // Used for posting asynchronous IO tasks. We use this even though | 1173 // Used for posting asynchronous IO tasks. We use this even though |
| 1171 // SpdySession is refcounted because we don't need to keep the SpdySession | 1174 // SpdySession is refcounted because we don't need to keep the SpdySession |
| 1172 // alive if the last reference is within a RunnableMethod. Just revoke the | 1175 // alive if the last reference is within a RunnableMethod. Just revoke the |
| 1173 // method. | 1176 // method. |
| 1174 base::WeakPtrFactory<SpdySession> weak_factory_; | 1177 base::WeakPtrFactory<SpdySession> weak_factory_; |
| 1175 }; | 1178 }; |
| 1176 | 1179 |
| 1177 } // namespace net | 1180 } // namespace net |
| 1178 | 1181 |
| 1179 #endif // NET_SPDY_SPDY_SESSION_H_ | 1182 #endif // NET_SPDY_SPDY_SESSION_H_ |
| OLD | NEW |