diff options
author | erg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-01-20 00:12:13 +0000 |
---|---|---|
committer | erg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-01-20 00:12:13 +0000 |
commit | be1a48bcd64ea75939f38a9ab264ee99214313bb (patch) | |
tree | c9aa66838177a6e10757ae4547e731a490420bfa /net/base/upload_data_stream.cc | |
parent | f1e99b1b03848eb939fd3f51b56de1b23dfab057 (diff) | |
download | chromium_src-be1a48bcd64ea75939f38a9ab264ee99214313bb.zip chromium_src-be1a48bcd64ea75939f38a9ab264ee99214313bb.tar.gz chromium_src-be1a48bcd64ea75939f38a9ab264ee99214313bb.tar.bz2 |
Even more reordering the methods in headers and implementation in net/.
BUG=68682
TEST=compiles
Review URL: http://codereview.chromium.org/6314010
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@71880 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/base/upload_data_stream.cc')
-rw-r--r-- | net/base/upload_data_stream.cc | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/net/base/upload_data_stream.cc b/net/base/upload_data_stream.cc index 329058c..0ec4c97 100644 --- a/net/base/upload_data_stream.cc +++ b/net/base/upload_data_stream.cc @@ -12,6 +12,9 @@ namespace net { +UploadDataStream::~UploadDataStream() { +} + UploadDataStream* UploadDataStream::Create(UploadData* data, int* error_code) { scoped_ptr<UploadDataStream> stream(new UploadDataStream(data)); int rv = stream->FillBuf(); @@ -23,21 +26,6 @@ UploadDataStream* UploadDataStream::Create(UploadData* data, int* error_code) { return stream.release(); } -UploadDataStream::UploadDataStream(UploadData* data) - : data_(data), - buf_(new IOBuffer(kBufSize)), - buf_len_(0), - next_element_(data->elements()->begin()), - next_element_offset_(0), - next_element_remaining_(0), - total_size_(data->GetContentLength()), - current_position_(0), - eof_(false) { -} - -UploadDataStream::~UploadDataStream() { -} - void UploadDataStream::DidConsume(size_t num_bytes) { DCHECK_LE(num_bytes, buf_len_); DCHECK(!eof_); @@ -51,6 +39,18 @@ void UploadDataStream::DidConsume(size_t num_bytes) { current_position_ += num_bytes; } +UploadDataStream::UploadDataStream(UploadData* data) + : data_(data), + buf_(new IOBuffer(kBufSize)), + buf_len_(0), + next_element_(data->elements()->begin()), + next_element_offset_(0), + next_element_remaining_(0), + total_size_(data->GetContentLength()), + current_position_(0), + eof_(false) { +} + int UploadDataStream::FillBuf() { std::vector<UploadData::Element>::iterator end = data_->elements()->end(); |