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

Unified Diff: net/http/http_stream_parser.h

Issue 6292013: Add chunked uploads support to SPDY (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 9 years, 10 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/http/http_stream_parser.h
diff --git a/net/http/http_stream_parser.h b/net/http/http_stream_parser.h
index 5f7e943ab5073cb98af2d5e087a5d8a0053da652..d9241a6ac91a31c5d4f2a2d33489e8930d49c6dc 100644
--- a/net/http/http_stream_parser.h
+++ b/net/http/http_stream_parser.h
@@ -189,6 +189,13 @@ class HttpStreamParser : public ChunkCallback {
// Callback to be used when doing IO.
CompletionCallbackImpl<HttpStreamParser> io_callback_;
+ // Stores an encoded chunk for chunked uploads.
+ // Note: This should perhaps be improved to not create copies of the data.
+ scoped_refptr<IOBuffer> chunk_buf_;
+ size_t chunk_length_;
+ size_t chunk_length_without_encoding_;
+ bool sent_last_chunk_;
+
DISALLOW_COPY_AND_ASSIGN(HttpStreamParser);
};

Powered by Google App Engine
This is Rietveld 408576698