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

Unified Diff: net/base/file_stream_context.cc

Issue 1148383003: Only support seeking file streams from the beginning of the file. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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
Index: net/base/file_stream_context.cc
diff --git a/net/base/file_stream_context.cc b/net/base/file_stream_context.cc
index eeb68932e712d0adf173a4ae92ba751698b23be3..3d49bc0a5fd49ebcd978fc998ff751a8673526d7 100644
--- a/net/base/file_stream_context.cc
+++ b/net/base/file_stream_context.cc
@@ -116,19 +116,14 @@ void FileStream::Context::Close(const CompletionCallback& callback) {
async_in_progress_ = true;
}
-void FileStream::Context::Seek(base::File::Whence whence,
- int64 offset,
+void FileStream::Context::Seek(int64 offset,
const Int64CompletionCallback& callback) {
DCHECK(!async_in_progress_);
bool posted = base::PostTaskAndReplyWithResult(
- task_runner_.get(),
- FROM_HERE,
- base::Bind(
- &Context::SeekFileImpl, base::Unretained(this), whence, offset),
- base::Bind(&Context::OnAsyncCompleted,
- base::Unretained(this),
- callback));
+ task_runner_.get(), FROM_HERE,
+ base::Bind(&Context::SeekFileImpl, base::Unretained(this), offset),
+ base::Bind(&Context::OnAsyncCompleted, base::Unretained(this), callback));
DCHECK(posted);
async_in_progress_ = true;

Powered by Google App Engine
This is Rietveld 408576698