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

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

Issue 3020032: Implement server push protocol 2. (Closed)
Patch Set: nits. Created 10 years, 4 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
« no previous file with comments | « net/spdy/spdy_session_unittest.cc ('k') | net/spdy/spdy_stream.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) 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 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 int DoSendBody(); 204 int DoSendBody();
205 int DoSendBodyComplete(int result); 205 int DoSendBodyComplete(int result);
206 int DoReadHeaders(); 206 int DoReadHeaders();
207 int DoReadHeadersComplete(int result); 207 int DoReadHeadersComplete(int result);
208 int DoOpen(int result); 208 int DoOpen(int result);
209 209
210 // Update the histograms. Can safely be called repeatedly, but should only 210 // Update the histograms. Can safely be called repeatedly, but should only
211 // be called after the stream has completed. 211 // be called after the stream has completed.
212 void UpdateHistograms(); 212 void UpdateHistograms();
213 213
214 // When a server pushed stream is first created, this function is posted on
215 // the MessageLoop to replay all the data that the server has already sent.
216 void PushedStreamReplayData();
217
218 // There is a small period of time between when a server pushed stream is
219 // first created, and the pushed data is replayed. Any data received during
220 // this time should continue to be buffered.
221 bool continue_buffering_data_;
222
214 spdy::SpdyStreamId stream_id_; 223 spdy::SpdyStreamId stream_id_;
215 std::string path_; 224 std::string path_;
216 int priority_; 225 int priority_;
217 int send_window_size_; 226 int send_window_size_;
218 227
219 const bool pushed_; 228 const bool pushed_;
220 ScopedBandwidthMetrics metrics_; 229 ScopedBandwidthMetrics metrics_;
221 bool syn_reply_received_; 230 bool syn_reply_received_;
222 231
223 scoped_refptr<SpdySession> session_; 232 scoped_refptr<SpdySession> session_;
(...skipping 30 matching lines...) Expand all
254 bool histograms_recorded_; 263 bool histograms_recorded_;
255 // Data received before delegate is attached. 264 // Data received before delegate is attached.
256 std::vector<scoped_refptr<IOBufferWithSize> > pending_buffers_; 265 std::vector<scoped_refptr<IOBufferWithSize> > pending_buffers_;
257 266
258 DISALLOW_COPY_AND_ASSIGN(SpdyStream); 267 DISALLOW_COPY_AND_ASSIGN(SpdyStream);
259 }; 268 };
260 269
261 } // namespace net 270 } // namespace net
262 271
263 #endif // NET_SPDY_SPDY_STREAM_H_ 272 #endif // NET_SPDY_SPDY_STREAM_H_
OLDNEW
« no previous file with comments | « net/spdy/spdy_session_unittest.cc ('k') | net/spdy/spdy_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698