| 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..06afd40159a1b5d072701816ba4fb9b2a14eeda6 100644
|
| --- a/net/base/upload_data_stream.h
|
| +++ b/net/base/upload_data_stream.h
|
| @@ -30,9 +30,11 @@ class NET_EXPORT UploadDataStream {
|
|
|
| // TODO(satish): We should ideally have UploadDataStream expose a Read()
|
| // 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
|
| + // with this constant and make the interface cleaner as well with less memmove
|
| // calls.
|
| - size_t GetMaxBufferSize() const { return kBufSize; }
|
| + //
|
| + // The size of the stream's buffer pointed by buf().
|
| + static const size_t kBufferSize;
|
|
|
| // 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 +69,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);
|
|
|