diff options
author | darin@google.com <darin@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-09-29 17:29:38 +0000 |
---|---|---|
committer | darin@google.com <darin@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-09-29 17:29:38 +0000 |
commit | 9396b257950a859afb01dea086c13645884e39e4 (patch) | |
tree | ee0c2f81bc9c4f6098ccdb882054a50aff5c6c4f /net/base/upload_data_stream.h | |
parent | 1843ebdfbc05e6b91ce4070647271dfbe090d687 (diff) | |
download | chromium_src-9396b257950a859afb01dea086c13645884e39e4.zip chromium_src-9396b257950a859afb01dea086c13645884e39e4.tar.gz chromium_src-9396b257950a859afb01dea086c13645884e39e4.tar.bz2 |
Define FileInputStream and use it to make UpdateDataStream and URLRequestFileJob portable.
file_input_stream_posix.cc is not implemented in this CL. That is saved for a follow-up.
R=mark
Review URL: http://codereview.chromium.org/4101
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2673 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/base/upload_data_stream.h')
-rw-r--r-- | net/base/upload_data_stream.h | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/net/base/upload_data_stream.h b/net/base/upload_data_stream.h index f31cb80..9d22d2e 100644 --- a/net/base/upload_data_stream.h +++ b/net/base/upload_data_stream.h @@ -5,7 +5,7 @@ #ifndef NET_BASE_UPLOAD_DATA_STREAM_H_ #define NET_BASE_UPLOAD_DATA_STREAM_H_ -#include "build/build_config.h" +#include "net/base/file_input_stream.h" #include "net/base/upload_data.h" namespace net { @@ -51,12 +51,9 @@ class UploadDataStream { // a TYPE_BYTES element. size_t next_element_offset_; -#if defined(OS_WIN) - // A handle to the currently open file (or INVALID_HANDLE_VALUE) for - // next_element_ if the next element is a TYPE_FILE element. - // TODO(pinkerton): when we get a cross-platform file class, replace this - HANDLE next_element_handle_; -#endif + // A stream to the currently open file, for next_element_ if the next element + // is a TYPE_FILE element. + FileInputStream next_element_stream_; // The number of bytes remaining to be read from the currently open file // if the next element is of TYPE_FILE. |