| 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..016d4b21b6f7c0c4a287e544ccf82863855986ef 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;
|
| @@ -149,6 +144,10 @@ void FileStream::Context::Flush(const CompletionCallback& callback) {
|
| async_in_progress_ = true;
|
| }
|
|
|
| +bool FileStream::Context::IsOpen() const {
|
| + return file_.IsValid();
|
| +}
|
| +
|
| FileStream::Context::OpenResult FileStream::Context::OpenFileImpl(
|
| const base::FilePath& path, int open_flags) {
|
| #if defined(OS_POSIX)
|
|
|