| 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 <algorithm> | 8 #include <algorithm> |
| 9 #include <list> | 9 #include <list> |
| 10 #include <map> | 10 #include <map> |
| (...skipping 607 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 618 // |spdy_session_pool_| owns us, therefore its lifetime must exceed ours. We | 618 // |spdy_session_pool_| owns us, therefore its lifetime must exceed ours. We |
| 619 // set this to NULL after we are removed from the pool. | 619 // set this to NULL after we are removed from the pool. |
| 620 SpdySessionPool* spdy_session_pool_; | 620 SpdySessionPool* spdy_session_pool_; |
| 621 HttpServerProperties* const http_server_properties_; | 621 HttpServerProperties* const http_server_properties_; |
| 622 | 622 |
| 623 // The socket handle for this session. | 623 // The socket handle for this session. |
| 624 scoped_ptr<ClientSocketHandle> connection_; | 624 scoped_ptr<ClientSocketHandle> connection_; |
| 625 | 625 |
| 626 // The read buffer used to read data from the socket. | 626 // The read buffer used to read data from the socket. |
| 627 scoped_refptr<IOBuffer> read_buffer_; | 627 scoped_refptr<IOBuffer> read_buffer_; |
| 628 bool read_pending_; | |
| 629 | 628 |
| 630 int stream_hi_water_mark_; // The next stream id to use. | 629 int stream_hi_water_mark_; // The next stream id to use. |
| 631 | 630 |
| 632 // Queue, for each priority, of pending Create Streams that have not | 631 // Queue, for each priority, of pending Create Streams that have not |
| 633 // yet been satisfied | 632 // yet been satisfied |
| 634 PendingCreateStreamQueue pending_create_stream_queues_[NUM_PRIORITIES]; | 633 PendingCreateStreamQueue pending_create_stream_queues_[NUM_PRIORITIES]; |
| 635 | 634 |
| 636 // Map from stream id to all active streams. Streams are active in the sense | 635 // Map from stream id to all active streams. Streams are active in the sense |
| 637 // that they have a consumer (typically SpdyNetworkTransaction and regardless | 636 // that they have a consumer (typically SpdyNetworkTransaction and regardless |
| 638 // of whether or not there is currently any ongoing IO [might be waiting for | 637 // of whether or not there is currently any ongoing IO [might be waiting for |
| (...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 773 // This SPDY proxy is allowed to push resources from origins that are | 772 // This SPDY proxy is allowed to push resources from origins that are |
| 774 // different from those of their associated streams. | 773 // different from those of their associated streams. |
| 775 HostPortPair trusted_spdy_proxy_; | 774 HostPortPair trusted_spdy_proxy_; |
| 776 | 775 |
| 777 TimeFunc time_func_; | 776 TimeFunc time_func_; |
| 778 }; | 777 }; |
| 779 | 778 |
| 780 } // namespace net | 779 } // namespace net |
| 781 | 780 |
| 782 #endif // NET_SPDY_SPDY_SESSION_H_ | 781 #endif // NET_SPDY_SPDY_SESSION_H_ |
| OLD | NEW |