OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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_FLIP_FLIP_SESSION_H_ | 5 #ifndef NET_FLIP_FLIP_SESSION_H_ |
6 #define NET_FLIP_FLIP_SESSION_H_ | 6 #define NET_FLIP_FLIP_SESSION_H_ |
7 | 7 |
8 #include <deque> | 8 #include <deque> |
9 #include <list> | 9 #include <list> |
10 #include <map> | 10 #include <map> |
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
173 std::string domain_; | 173 std::string domain_; |
174 | 174 |
175 scoped_refptr<HttpNetworkSession> session_; | 175 scoped_refptr<HttpNetworkSession> session_; |
176 | 176 |
177 // The socket handle for this session. | 177 // The socket handle for this session. |
178 ClientSocketHandle connection_; | 178 ClientSocketHandle connection_; |
179 bool connection_started_; | 179 bool connection_started_; |
180 | 180 |
181 // The read buffer used to read data from the socket. | 181 // The read buffer used to read data from the socket. |
182 enum { kReadBufferSize = (4 * 1024) }; | 182 enum { kReadBufferSize = (4 * 1024) }; |
183 scoped_refptr<net::MovableIOBuffer> read_buffer_; | 183 scoped_refptr<IOBuffer> read_buffer_; |
184 int read_buffer_bytes_read_; // bytes left in the buffer from prior read. | |
185 bool read_pending_; | 184 bool read_pending_; |
186 | 185 |
187 int stream_hi_water_mark_; // The next stream id to use. | 186 int stream_hi_water_mark_; // The next stream id to use. |
188 | 187 |
189 typedef std::map<int, FlipStreamImpl*> ActiveStreamMap; | 188 typedef std::map<int, FlipStreamImpl*> ActiveStreamMap; |
190 typedef std::list<FlipStreamImpl*> ActiveStreamList; | 189 typedef std::list<FlipStreamImpl*> ActiveStreamList; |
191 ActiveStreamMap active_streams_; | 190 ActiveStreamMap active_streams_; |
192 | 191 |
193 ActiveStreamList pushed_streams_; | 192 ActiveStreamList pushed_streams_; |
194 | 193 |
(...skipping 12 matching lines...) Expand all Loading... |
207 | 206 |
208 // This is our weak session pool - one session per domain. | 207 // This is our weak session pool - one session per domain. |
209 static scoped_ptr<FlipSessionPool> session_pool_; | 208 static scoped_ptr<FlipSessionPool> session_pool_; |
210 static bool disable_compression_; | 209 static bool disable_compression_; |
211 }; | 210 }; |
212 | 211 |
213 } // namespace net | 212 } // namespace net |
214 | 213 |
215 #endif // NET_FLIP_FLIP_SESSION_H_ | 214 #endif // NET_FLIP_FLIP_SESSION_H_ |
216 | 215 |
OLD | NEW |