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

Unified Diff: net/base/upload_data_stream.h

Issue 9452040: net: Move the logic reading upload elements to UploadData::Element. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: move resetoffset to init Created 8 years, 10 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 | « net/base/upload_data.cc ('k') | net/base/upload_data_stream.cc » ('j') | no next file with comments »
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 ad70b098b4aeac982ee7247ebc7e69f64acb4ddf..65d42368d39fb2bc4e8ed64231b8c06b1d41546d 100644
--- a/net/base/upload_data_stream.h
+++ b/net/base/upload_data_stream.h
@@ -69,9 +69,6 @@ class NET_EXPORT UploadDataStream {
static void set_merge_chunks(bool merge) { merge_chunks_ = merge; }
private:
- // Advances to the next element. Updates the internal states.
- void AdvanceToNextElement();
-
scoped_refptr<UploadData> upload_data_;
// Index of the current upload element (i.e. the element currently being
@@ -79,18 +76,6 @@ class NET_EXPORT UploadDataStream {
// |upload_data_|.
size_t element_index_;
- // The byte offset into the current element's data buffer if the current
- // element is a TYPE_BYTES or TYPE_DATA element.
- size_t element_offset_;
-
- // A stream to the currently open file, for the current element if the
- // current element is a TYPE_FILE element.
- scoped_ptr<FileStream> element_file_stream_;
-
- // The number of bytes remaining to be read from the currently open file
- // if the current element is of TYPE_FILE.
- uint64 element_file_bytes_remaining_;
-
// Size and current read position within the upload data stream.
uint64 total_size_;
uint64 current_position_;
« no previous file with comments | « net/base/upload_data.cc ('k') | net/base/upload_data_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698