| Index: content/child/fileapi/file_system_dispatcher.cc
|
| diff --git a/content/child/fileapi/file_system_dispatcher.cc b/content/child/fileapi/file_system_dispatcher.cc
|
| index b7a13671cfeecb823528696e605368be8b352c83..095dc58e27f05acc65bf16c6c353ff0cbabff351 100644
|
| --- a/content/child/fileapi/file_system_dispatcher.cc
|
| +++ b/content/child/fileapi/file_system_dispatcher.cc
|
| @@ -272,7 +272,7 @@ void FileSystemDispatcher::Truncate(
|
| *request_id_out = request_id;
|
| }
|
|
|
| -void FileSystemDispatcher::Write(
|
| +void FileSystemDispatcher::WriteDeprecated(
|
| const GURL& path,
|
| const GURL& blob_url,
|
| int64 offset,
|
| @@ -282,7 +282,24 @@ void FileSystemDispatcher::Write(
|
| int request_id = dispatchers_.Add(
|
| CallbackDispatcher::Create(success_callback, error_callback));
|
| ChildThread::current()->Send(
|
| - new FileSystemHostMsg_Write(request_id, path, blob_url, offset));
|
| + new FileSystemHostMsg_WriteDeprecated(request_id, path,
|
| + blob_url, offset));
|
| +
|
| + if (request_id_out)
|
| + *request_id_out = request_id;
|
| +}
|
| +
|
| +void FileSystemDispatcher::Write(
|
| + const GURL& path,
|
| + const std::string& blob_id,
|
| + int64 offset,
|
| + int* request_id_out,
|
| + const WriteCallback& success_callback,
|
| + const StatusCallback& error_callback) {
|
| + int request_id = dispatchers_.Add(
|
| + CallbackDispatcher::Create(success_callback, error_callback));
|
| + ChildThread::current()->Send(
|
| + new FileSystemHostMsg_Write(request_id, path, blob_id, offset));
|
|
|
| if (request_id_out)
|
| *request_id_out = request_id;
|
|
|