| 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..f9fa2253c37a98f42e46dec196828a071f7fb0d2 100644
|
| --- a/net/spdy/bidirectional_stream_spdy_impl.h
|
| +++ b/net/spdy/bidirectional_stream_spdy_impl.h
|
| @@ -74,10 +74,14 @@ class NET_EXPORT_PRIVATE BidirectionalStreamSpdyImpl
|
| void OnStreamInitialized(int rv);
|
| // Notifies delegate of an error.
|
| void NotifyError(int rv);
|
| + void NotifyDataSent();
|
| void ResetStream();
|
| 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 +100,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.
|
|
|