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

Unified Diff: net/http/http_chunked_decoder.h

Issue 267042: Add an interface to report the amount of data after a chunked encoding.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 2 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/http/http_chunked_decoder.cc » ('j') | net/http/http_chunked_decoder_unittest.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/http_chunked_decoder.h
===================================================================
--- net/http/http_chunked_decoder.h (revision 28152)
+++ net/http/http_chunked_decoder.h (working copy)
@@ -76,6 +76,9 @@
// Indicates that a previous call to FilterBuf encountered the final CRLF.
bool reached_eof() const { return reached_eof_; }
+ // Returns the number of bytes after the final CRLF.
+ int bytes_after_eof() const { return bytes_after_eof_; }
+
// Called to filter out the chunk markers from buf and to check for end-of-
// file. This method modifies |buf| inline if necessary to remove chunk
// markers. The return value indicates the final size of decoded data stored
@@ -108,6 +111,10 @@
// Set to true when FilterBuf encounters the final CRLF.
bool reached_eof_;
+
+ // The number of unfiltered bytes after the final CRLF, either extraneous
+ // data or the first part of the next response in a pipelined stream.
+ int bytes_after_eof_;
};
} // namespace net
« no previous file with comments | « no previous file | net/http/http_chunked_decoder.cc » ('j') | net/http/http_chunked_decoder_unittest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698