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

Unified Diff: net/spdy/spdy_stream.h

Issue 10828129: SPDY: WriteHeaders should not invoke OnDataSent callback (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add check for OnHeadersSent in tests Created 8 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 side-by-side diff with in-line comments
Download patch
Index: net/spdy/spdy_stream.h
diff --git a/net/spdy/spdy_stream.h b/net/spdy/spdy_stream.h
index 0e383b321dbd186ae362879b285aa94d689df39f..9d0ccebab6e6cf0662cac2178857af6d26795b56 100644
--- a/net/spdy/spdy_stream.h
+++ b/net/spdy/spdy_stream.h
@@ -71,6 +71,9 @@ class NET_EXPORT_PRIVATE SpdyStream
base::Time response_time,
int status) = 0;
+ // Called when a HEADERS frame is sent.
+ virtual void OnHeadersSent() = 0;
+
// Called when data is received.
virtual void OnDataReceived(const char* data, int length) = 0;
@@ -89,14 +92,14 @@ class NET_EXPORT_PRIVATE SpdyStream
};
// Indicates pending frame type.
- enum PendingFrameType {
- TYPE_HEADER,
+ enum FrameType {
+ TYPE_HEADERS,
TYPE_DATA
};
// Structure to contains pending frame information.
typedef struct {
- PendingFrameType type;
+ FrameType type;
union {
SpdyHeaderBlock* header_block;
SpdyDataFrame* data_frame;
@@ -366,6 +369,8 @@ class NET_EXPORT_PRIVATE SpdyStream
std::list<PendingFrame> pending_frames_;
+ std::list<FrameType> waiting_completions_;
Ryan Hamilton 2012/08/13 17:10:02 nit: Please add a comment that describes the diffe
Takashi Toyoshima 2012/08/14 09:14:02 Done.
+
State io_state_;
// Since we buffer the response, we also buffer the response status.

Powered by Google App Engine
This is Rietveld 408576698