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

Unified Diff: net/base/upload_data_stream.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/base/upload_data_stream.h
diff --git a/net/base/upload_data_stream.h b/net/base/upload_data_stream.h
index f291140348b7d2acea7b940eee783771fa36e018..4d4e79f6cd36af77adc923120b99b9f071b66723 100644
--- a/net/base/upload_data_stream.h
+++ b/net/base/upload_data_stream.h
@@ -27,6 +27,11 @@ class UploadDataStream {
IOBuffer* buf() const { return buf_; }
size_t buf_len() const { return buf_len_; }
+ // TODO: We should ideally have UploadDataStream expose a Read() method which
willchan no longer on Chromium 2011/03/02 18:44:40 Put a username on this TODO, either yours or mine.
Satish 2011/03/03 13:50:10 Done.
+ // returns data in a caller provided IOBuffer. That would do away with this
+ // method and make the interface cleaner as well with less memmove calls.
+ size_t GetMaxBufferSize() const { return kBufSize; }
+
// Call to indicate that a portion of the stream's buffer was consumed. This
// call modifies the stream's buffer so that it contains the next segment of
// the upload data to be consumed.
« no previous file with comments | « net/base/upload_data.cc ('k') | net/base/upload_data_stream.cc » ('j') | net/spdy/spdy_framer.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698