Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(165)

Side by Side Diff: net/flip/flip_session.h

Issue 208042: Fixup the flip buffer to use a regular IOBuffer... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | net/flip/flip_session.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | net/flip/flip_session.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698