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

Side by Side Diff: net/spdy/spdy_stream.h

Issue 652209: Modify the SPDY stream to be buffered.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 9 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
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_STREAM_H_ 5 #ifndef NET_SPDY_SPDY_STREAM_H_
6 #define NET_SPDY_SPDY_STREAM_H_ 6 #define NET_SPDY_SPDY_STREAM_H_
7 7
8 #include <string> 8 #include <string>
9 #include <list> 9 #include <list>
10 10
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 }; 143 };
144 144
145 ~SpdyStream(); 145 ~SpdyStream();
146 146
147 // Try to make progress sending/receiving the request/response. 147 // Try to make progress sending/receiving the request/response.
148 int DoLoop(int result); 148 int DoLoop(int result);
149 149
150 // Call the user callback. 150 // Call the user callback.
151 void DoCallback(int rv); 151 void DoCallback(int rv);
152 152
153 void ScheduleBufferedReadCallback();
154 void DoBufferedReadCallback();
155 bool ShouldWaitForMoreBufferedData();
156
153 // The implementations of each state of the state machine. 157 // The implementations of each state of the state machine.
154 int DoSendHeaders(); 158 int DoSendHeaders();
155 int DoSendHeadersComplete(int result); 159 int DoSendHeadersComplete(int result);
156 int DoSendBody(); 160 int DoSendBody();
157 int DoSendBodyComplete(int result); 161 int DoSendBodyComplete(int result);
158 int DoReadHeaders(); 162 int DoReadHeaders();
159 int DoReadHeadersComplete(int result); 163 int DoReadHeadersComplete(int result);
160 int DoReadBody(); 164 int DoReadBody();
161 int DoReadBodyComplete(int result); 165 int DoReadBodyComplete(int result);
162 166
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 200
197 scoped_refptr<LoadLog> load_log_; 201 scoped_refptr<LoadLog> load_log_;
198 202
199 base::TimeTicks send_time_; 203 base::TimeTicks send_time_;
200 base::TimeTicks recv_first_byte_time_; 204 base::TimeTicks recv_first_byte_time_;
201 base::TimeTicks recv_last_byte_time_; 205 base::TimeTicks recv_last_byte_time_;
202 int send_bytes_; 206 int send_bytes_;
203 int recv_bytes_; 207 int recv_bytes_;
204 bool histograms_recorded_; 208 bool histograms_recorded_;
205 209
210 // Is there a scheduled read callback pending.
211 bool buffered_read_callback_pending_;
212 // Has more data been received from the network during the wait for the
213 // scheduled read callback.
214 bool more_read_data_pending_;
215
206 DISALLOW_COPY_AND_ASSIGN(SpdyStream); 216 DISALLOW_COPY_AND_ASSIGN(SpdyStream);
207 }; 217 };
208 218
209 } // namespace net 219 } // namespace net
210 220
211 #endif // NET_SPDY_SPDY_STREAM_H_ 221 #endif // NET_SPDY_SPDY_STREAM_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698