diff options
author | rvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-11 23:31:08 +0000 |
---|---|---|
committer | rvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-11 23:31:08 +0000 |
commit | 8c66f1b4a7164a2f7cb61bae3288cd3dc50c2b18 (patch) | |
tree | 9396e85fcbc44f3a443bca9623b9933ca885d969 /net/base/upload_data_stream.h | |
parent | 83df216dbfd197f90b087f74c0a268c1e0db988b (diff) | |
download | chromium_src-8c66f1b4a7164a2f7cb61bae3288cd3dc50c2b18.zip chromium_src-8c66f1b4a7164a2f7cb61bae3288cd3dc50c2b18.tar.gz chromium_src-8c66f1b4a7164a2f7cb61bae3288cd3dc50c2b18.tar.bz2 |
Use IOBuffers on UploadDataStream.
This is some cleanup of cl 14998.
R=wtc
BUG=9258
TEST=none
Review URL: http://codereview.chromium.org/115157
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@15812 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/base/upload_data_stream.h')
-rw-r--r-- | net/base/upload_data_stream.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/net/base/upload_data_stream.h b/net/base/upload_data_stream.h index b39c550..e65d08b 100644 --- a/net/base/upload_data_stream.h +++ b/net/base/upload_data_stream.h @@ -6,6 +6,7 @@ #define NET_BASE_UPLOAD_DATA_STREAM_H_ #include "net/base/file_stream.h" +#include "net/base/io_buffer.h" #include "net/base/upload_data.h" namespace net { @@ -16,7 +17,7 @@ class UploadDataStream { ~UploadDataStream(); // Returns the stream's buffer and buffer length. - const char* buf() const { return buf_; } + IOBuffer* buf() const { return buf_; } size_t buf_len() const { return buf_len_; } // Call to indicate that a portion of the stream's buffer was consumed. This @@ -38,7 +39,7 @@ class UploadDataStream { // once, then we memmove the remaining portion and back-fill the buffer for // the next "write" call. buf_len_ indicates how much data is in the buffer. enum { kBufSize = 16384 }; - char buf_[kBufSize]; + scoped_refptr<IOBuffer> buf_; size_t buf_len_; // Iterator to the upload element to be written to the send buffer next. |