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

Unified Diff: net/spdy/spdy_http_stream.h

Issue 10689034: SPDY - chunked upload - speech recognition doesn't work with SPDY/3 (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 6 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
« no previous file with comments | « no previous file | net/spdy/spdy_http_stream.cc » ('j') | net/spdy/spdy_http_stream_spdy2_unittest.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « no previous file | net/spdy/spdy_http_stream.cc » ('j') | net/spdy/spdy_http_stream_spdy2_unittest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698