diff options
author | kinuko@chromium.org <kinuko@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-04-11 08:02:17 +0000 |
---|---|---|
committer | kinuko@chromium.org <kinuko@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-04-11 08:02:17 +0000 |
commit | cf02541b6dd5a26ce0f9a5664dec0fce365372d2 (patch) | |
tree | a3c55f0583fea567acc4764c8ff170c285f2f917 /webkit/blob/blob_url_request_job.cc | |
parent | 5c40dce570edf4658a077faff2323e2b1e5936e7 (diff) | |
download | chromium_src-cf02541b6dd5a26ce0f9a5664dec0fce365372d2.zip chromium_src-cf02541b6dd5a26ce0f9a5664dec0fce365372d2.tar.gz chromium_src-cf02541b6dd5a26ce0f9a5664dec0fce365372d2.tar.bz2 |
Make FileStream::Seek async and add FileStream::SeekSync for sync operation
BUG=75548,113300
TEST=existing tests should pass
Review URL: https://chromiumcodereview.appspot.com/9949011
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@131732 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/blob/blob_url_request_job.cc')
-rw-r--r-- | webkit/blob/blob_url_request_job.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/webkit/blob/blob_url_request_job.cc b/webkit/blob/blob_url_request_job.cc index ccc229c..d6be8a5 100644 --- a/webkit/blob/blob_url_request_job.cc +++ b/webkit/blob/blob_url_request_job.cc @@ -385,10 +385,10 @@ void BlobURLRequestJob::DidOpenFile(int bytes_to_read, const BlobData::Item& item = blob_data_->items().at(current_item_index_); { - // stream_.Seek() blocks the IO thread, see http://crbug.com/75548. + // stream_.SeekSync() blocks the IO thread, see http://crbug.com/75548. base::ThreadRestrictions::ScopedAllowIO allow_io; int64 offset = current_item_offset_ + static_cast<int64>(item.offset); - if (offset > 0 && offset != stream_->Seek(net::FROM_BEGIN, offset)) { + if (offset > 0 && offset != stream_->SeekSync(net::FROM_BEGIN, offset)) { NotifyFailure(net::ERR_FAILED); return; } |