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

Unified Diff: net/http/http_stream_parser.h

Issue 9293029: net: Introduce SeekableIOBuffer and clean up HttpStreamParser. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix comments Created 8 years, 11 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 | « net/base/io_buffer.h ('k') | net/http/http_stream_parser.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/http_stream_parser.h
diff --git a/net/http/http_stream_parser.h b/net/http/http_stream_parser.h
index 861fbe9402956e1e22b6f0468b0947a6f70b4ea0..5740bb35420fc2c77ecbe980a74661a33878b92d 100644
--- a/net/http/http_stream_parser.h
+++ b/net/http/http_stream_parser.h
@@ -102,6 +102,8 @@ class NET_EXPORT_PRIVATE HttpStreamParser : public ChunkCallback {
static const size_t kChunkHeaderFooterSize;
private:
+ class SeekableIOBuffer;
+
// FOO_COMPLETE states implement the second half of potentially asynchronous
// operations and don't necessarily mean that FOO is complete.
enum State {
@@ -223,9 +225,7 @@ class NET_EXPORT_PRIVATE HttpStreamParser : public ChunkCallback {
// Stores an encoded chunk for chunked uploads.
// Note: This should perhaps be improved to not create copies of the data.
- scoped_refptr<IOBufferWithSize> raw_chunk_buf_;
- // Wraps raw_chunk_buf_ to read the remaining data progressively.
- scoped_refptr<DrainableIOBuffer> chunk_buf_;
+ scoped_refptr<SeekableIOBuffer> chunk_buf_;
size_t chunk_length_without_encoding_;
bool sent_last_chunk_;
« no previous file with comments | « net/base/io_buffer.h ('k') | net/http/http_stream_parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698