diff options
author | hashimoto@chromium.org <hashimoto@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-09-18 14:01:53 +0000 |
---|---|---|
committer | hashimoto@chromium.org <hashimoto@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-09-18 14:01:53 +0000 |
commit | df7adc6e3a6c82831052ebe799912e66ee01304d (patch) | |
tree | 3d05c14a37ab3b598a2b76e1c251b9b867a721a5 /chrome_frame/urlmon_upload_data_stream.cc | |
parent | 014bc6fdc57911f95f9de6119b70bcbda774b1e8 (diff) | |
download | chromium_src-df7adc6e3a6c82831052ebe799912e66ee01304d.zip chromium_src-df7adc6e3a6c82831052ebe799912e66ee01304d.tar.gz chromium_src-df7adc6e3a6c82831052ebe799912e66ee01304d.tar.bz2 |
net: Make UploadDataStream::Init() asynchronous.
Rename the existing synchronous version to InitSync() and add a new asynchronous version, Init().
However, the new asynchronous version is not used yet.
The existing code is changed to use the synchronous version.
BUG=72001
TEST=net_unittests
Review URL: https://chromiumcodereview.appspot.com/10913179
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@157344 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome_frame/urlmon_upload_data_stream.cc')
-rw-r--r-- | chrome_frame/urlmon_upload_data_stream.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome_frame/urlmon_upload_data_stream.cc b/chrome_frame/urlmon_upload_data_stream.cc index 2437554..8aae0df7 100644 --- a/chrome_frame/urlmon_upload_data_stream.cc +++ b/chrome_frame/urlmon_upload_data_stream.cc @@ -11,7 +11,7 @@ void UrlmonUploadDataStream::Initialize(net::UploadData* upload_data) { upload_data_ = upload_data; request_body_stream_.reset( new net::UploadDataStream(upload_data)); - const int result = request_body_stream_->Init(); + const int result = request_body_stream_->InitSync(); DCHECK_EQ(net::OK, result); } @@ -70,7 +70,7 @@ STDMETHODIMP UrlmonUploadDataStream::Seek(LARGE_INTEGER move, DWORD origin, if (origin == STREAM_SEEK_SET && move.QuadPart == 0) { if (request_body_stream_->position() != 0) { request_body_stream_.reset(new net::UploadDataStream(upload_data_)); - const int result = request_body_stream_->Init(); + const int result = request_body_stream_->InitSync(); DCHECK_EQ(net::OK, result); } if (new_pos) { |