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

Unified 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, 10 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 side-by-side diff with in-line comments
Download patch
Index: net/spdy/spdy_stream.h
===================================================================
--- net/spdy/spdy_stream.h (revision 39786)
+++ net/spdy/spdy_stream.h (working copy)
@@ -150,6 +150,10 @@
// Call the user callback.
void DoCallback(int rv);
+ void ScheduleBufferedReadCallback();
+ void DoBufferedReadCallback();
+ bool ShouldWaitForMoreBufferedData();
+
// The implementations of each state of the state machine.
int DoSendHeaders();
int DoSendHeadersComplete(int result);
@@ -203,6 +207,12 @@
int recv_bytes_;
bool histograms_recorded_;
+ // Is there a scheduled read callback pending.
+ bool buffered_read_callback_pending_;
+ // Has more data been received from the network during the wait for the
+ // scheduled read callback.
+ bool more_read_data_pending_;
+
DISALLOW_COPY_AND_ASSIGN(SpdyStream);
};

Powered by Google App Engine
This is Rietveld 408576698