summaryrefslogtreecommitdiffstats
path: root/net/base/upload_data_stream.h
diff options
context:
space:
mode:
Diffstat (limited to 'net/base/upload_data_stream.h')
-rw-r--r--net/base/upload_data_stream.h5
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.