diff options
author | hashimoto@chromium.org <hashimoto@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-12-20 11:50:24 +0000 |
---|---|---|
committer | hashimoto@chromium.org <hashimoto@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-12-20 11:50:24 +0000 |
commit | 4db27d802c70279a1e54f028c35eb9ff658fdd6c (patch) | |
tree | d405d57a308ac4b11760d71421ce76c9be08bd46 /net/base/upload_element_reader.h | |
parent | 46e404d69b13063c29a67b8f0349356afbe54796 (diff) | |
download | chromium_src-4db27d802c70279a1e54f028c35eb9ff658fdd6c.zip chromium_src-4db27d802c70279a1e54f028c35eb9ff658fdd6c.tar.gz chromium_src-4db27d802c70279a1e54f028c35eb9ff658fdd6c.tar.bz2 |
net: Split sync part of UploadFileElementReader as UploadFileElementReaderSync
Add UploadFileElementReaderSync and use it from Chrome Frame.
Remove UploadDataStream::InitSync/ReadSync
Remove UploadElementReader::InitSync/ReadSync
Allow passing null callbacks for Init/Read when callers can be confident that the operation finishes synchronously.
BUG=None
TEST=net_unittests, chrome_frame_net_tests
TBR=ananta@chromium.org for chrome_frame/urlmon_upload_data_stream.cc
Review URL: https://chromiumcodereview.appspot.com/11587007
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@174133 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/base/upload_element_reader.h')
-rw-r--r-- | net/base/upload_element_reader.h | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/net/base/upload_element_reader.h b/net/base/upload_element_reader.h index 6c0d18a..01f91fb 100644 --- a/net/base/upload_element_reader.h +++ b/net/base/upload_element_reader.h @@ -13,7 +13,6 @@ namespace net { class IOBuffer; class UploadBytesElementReader; -class UploadElement; class UploadFileElementReader; // An interface to read an upload data element. @@ -36,10 +35,6 @@ class NET_EXPORT UploadElementReader { // state. virtual int Init(const CompletionCallback& callback) = 0; - // Initializes the instance always synchronously. - // Use this method only if the thread is IO allowed or the data is in-memory. - virtual int InitSync(); - // Returns the byte-length of the element. For files that do not exist, 0 // is returned. This is done for consistency with Mozilla. virtual uint64 GetContentLength() const = 0; @@ -60,10 +55,6 @@ class NET_EXPORT UploadElementReader { int buf_length, const CompletionCallback& callback) = 0; - // Reads the data always synchronously. - // Use this method only if the thread is IO allowed or the data is in-memory. - virtual int ReadSync(IOBuffer* buf, int buf_length); - private: DISALLOW_COPY_AND_ASSIGN(UploadElementReader); }; |