Index: net/spdy/spdy_http_stream.h |
=================================================================== |
--- net/spdy/spdy_http_stream.h (revision 144839) |
+++ net/spdy/spdy_http_stream.h (working copy) |
@@ -77,6 +77,8 @@ |
virtual bool OnSendHeadersComplete(int status) OVERRIDE; |
virtual int OnSendBody() OVERRIDE; |
virtual int OnSendBodyComplete(int status, bool* eof) OVERRIDE; |
+ virtual int OnSendChunkedBody() OVERRIDE; |
+ virtual int OnSendChunkedBodyComplete(int status, bool* eof) OVERRIDE; |
virtual int OnResponseReceived(const SpdyHeaderBlock& response, |
base::Time response_time, |
int status) OVERRIDE; |
@@ -84,6 +86,7 @@ |
virtual void OnDataSent(int length) OVERRIDE; |
virtual void OnClose(int status) OVERRIDE; |
virtual void set_chunk_callback(ChunkCallback* callback) OVERRIDE; |
+ virtual bool IsRequestBodyChunked() OVERRIDE; |
private: |
FRIEND_TEST_ALL_PREFIXES(SpdyNetworkTransactionSpdy2Test, |
@@ -95,6 +98,14 @@ |
FRIEND_TEST_ALL_PREFIXES(SpdyNetworkTransactionSpdy3Test, |
FlowControlNegativeSendWindowSize); |
+ // Called from OnSendBody and OnSendChunkedBody to send the data. |
+ int SendBody(); |
+ // Called from OnSendBodyComplete and OnSendChunkedBodyComplete. |
+ // |eof| indicates if the entire body data has been sent or not. |
+ // If all the data hasn't been sent, it goes back to SendBody to send the |
+ // remaining data. |
+ int SendBodyComplete(int status, bool* eof); |
+ |
// Call the user callback. |
void DoCallback(int rv); |