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

Unified Diff: net/base/upload_data_stream.h

Issue 9242018: Factor out chunk encoding logic into HttpStreamParser::EncodeChunk(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 | « no previous file | net/base/upload_data_stream.cc » ('j') | net/http/http_stream_parser.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/upload_data_stream.h
diff --git a/net/base/upload_data_stream.h b/net/base/upload_data_stream.h
index df21e639a33dfb17633c197274e700d6497a6edb..eafefad5ceb46563fd189d8e2f1e00c2fffe01e4 100644
--- a/net/base/upload_data_stream.h
+++ b/net/base/upload_data_stream.h
@@ -32,7 +32,7 @@ class NET_EXPORT UploadDataStream {
// method which returns data in a caller provided IOBuffer. That would do away
// with this method and make the interface cleaner as well with less memmove
wtc 2012/01/18 22:49:24 method => constant
satorux1 2012/01/18 23:42:30 Good catch. Done.
// calls.
- size_t GetMaxBufferSize() const { return kBufSize; }
+ static const size_t kBufferSize;
wtc 2012/01/18 22:49:24 Please document this constant. (I know this is a
satorux1 2012/01/18 23:42:30 Done.
// 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
@@ -67,8 +67,6 @@ class NET_EXPORT UploadDataStream {
static void set_merge_chunks(bool merge) { merge_chunks_ = merge; }
private:
- enum { kBufSize = 16384 };
-
// Protects from public access since now we have a static creator function
// which will do both creation and initialization and might return an error.
explicit UploadDataStream(UploadData* data);
« no previous file with comments | « no previous file | net/base/upload_data_stream.cc » ('j') | net/http/http_stream_parser.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698