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

Unified Diff: webkit/blob/blob_url_request_job.cc

Issue 9949011: Make FileStream::Seek async and add FileStream::SeekSync for sync operation (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 8 years, 8 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/url_request/url_request_file_job.cc ('k') | webkit/fileapi/file_system_url_request_job.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/blob/blob_url_request_job.cc
diff --git a/webkit/blob/blob_url_request_job.cc b/webkit/blob/blob_url_request_job.cc
index ccc229cea1f87f5379675079b7bdc5a8c1ac4691..d6be8a5a0443b085c941e096784f2c7431f6b7bb 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;
}
« no previous file with comments | « net/url_request/url_request_file_job.cc ('k') | webkit/fileapi/file_system_url_request_job.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698