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

Unified Diff: net/base/upload_data_stream.h

Issue 10868064: net: Move data reading functionalities from UploadElement to UploadElementReader (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 3 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_bytes_element_reader_unittest.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 3d060f97cfad65ea236db0bbf7db10809ab2a235..73c93594106356497b98733baa3c25d14d5f749f 100644
--- a/net/base/upload_data_stream.h
+++ b/net/base/upload_data_stream.h
@@ -6,13 +6,14 @@
#define NET_BASE_UPLOAD_DATA_STREAM_H_
#include "base/memory/ref_counted.h"
+#include "base/memory/scoped_vector.h"
#include "net/base/net_export.h"
#include "net/base/upload_data.h"
namespace net {
-class FileStream;
class IOBuffer;
+class UploadElementReader;
class NET_EXPORT UploadDataStream {
public:
@@ -75,6 +76,7 @@ class NET_EXPORT UploadDataStream {
static void set_merge_chunks(bool merge) { merge_chunks_ = merge; }
scoped_refptr<UploadData> upload_data_;
+ ScopedVector<UploadElementReader> element_readers_;
// Index of the current upload element (i.e. the element currently being
// read). The index is used as a cursor to iterate over elements in
« no previous file with comments | « net/base/upload_bytes_element_reader_unittest.cc ('k') | net/base/upload_data_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698