| Index: net/spdy/bidirectional_stream_spdy_impl.h
|
| diff --git a/net/spdy/bidirectional_stream_spdy_impl.h b/net/spdy/bidirectional_stream_spdy_impl.h
|
| index 1e5e782bbbf8ffbab4c0f71613a6a81d23016696..1e3f6e7a0b903071dd77a2be5fb222bd9ea6002c 100644
|
| --- a/net/spdy/bidirectional_stream_spdy_impl.h
|
| +++ b/net/spdy/bidirectional_stream_spdy_impl.h
|
| @@ -78,6 +78,9 @@ class NET_EXPORT_PRIVATE BidirectionalStreamSpdyImpl
|
| void ScheduleBufferedRead();
|
| void DoBufferedRead();
|
| bool ShouldWaitForMoreBufferedData() const;
|
| + // Handles the case where stream is closed when SendData()/SendvData() is
|
| + // called. Return true if stream is closed.
|
| + bool MaybeHandleStreamClosedInSendData();
|
|
|
| const base::WeakPtr<SpdySession> spdy_session_;
|
| const BidirectionalStreamRequestInfo* request_info_;
|
| @@ -96,6 +99,12 @@ class NET_EXPORT_PRIVATE BidirectionalStreamSpdyImpl
|
| scoped_refptr<IOBuffer> read_buffer_;
|
| int read_buffer_len_;
|
|
|
| + // Whether client has written the end of stream flag in request headers or
|
| + // in SendData()/SendvData().
|
| + bool written_end_of_stream_;
|
| + // Whether a SendData() or SendvData() is pending.
|
| + bool write_pending_;
|
| +
|
| // Whether OnClose has been invoked.
|
| bool stream_closed_;
|
| // Status reported in OnClose.
|
|
|