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

Unified Diff: webkit/fileapi/file_system_file_util_proxy.cc

Issue 10829147: Make MediaFileUtil run on thread pool. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: update comment Created 8 years, 5 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: webkit/fileapi/file_system_file_util_proxy.cc
diff --git a/webkit/fileapi/file_system_file_util_proxy.cc b/webkit/fileapi/file_system_file_util_proxy.cc
index a566fc70d51fcafd7e80e9897ae4cbf4f6f906de..7122b82c11f97719f398afedfdd72d509395d11c 100644
--- a/webkit/fileapi/file_system_file_util_proxy.cc
+++ b/webkit/fileapi/file_system_file_util_proxy.cc
@@ -111,7 +111,7 @@ bool FileSystemFileUtilProxy::Delete(
bool recursive,
const StatusCallback& callback) {
return base::FileUtilProxy::RelayFileTask(
- context->file_task_runner(), FROM_HERE,
+ context->task_runner(), FROM_HERE,
Bind(&FileUtilHelper::Delete, context, file_util, url, recursive),
callback);
}
@@ -124,7 +124,7 @@ bool FileSystemFileUtilProxy::CreateOrOpen(
int file_flags,
const CreateOrOpenCallback& callback) {
return base::FileUtilProxy::RelayCreateOrOpen(
- context->file_task_runner(),
+ context->task_runner(),
Bind(&FileSystemFileUtil::CreateOrOpen, Unretained(file_util),
context, url, file_flags),
Bind(&FileSystemFileUtil::Close, Unretained(file_util),
@@ -141,7 +141,7 @@ bool FileSystemFileUtilProxy::Copy(
const FileSystemURL& dest_url,
const StatusCallback& callback) {
return base::FileUtilProxy::RelayFileTask(
- context->file_task_runner(), FROM_HERE,
+ context->task_runner(), FROM_HERE,
Bind(&FileUtilHelper::Copy,
context, src_util, dest_util, src_url, dest_url),
callback);
@@ -156,7 +156,7 @@ bool FileSystemFileUtilProxy::Move(
const FileSystemURL& dest_url,
const StatusCallback& callback) {
return base::FileUtilProxy::RelayFileTask(
- context->file_task_runner(), FROM_HERE,
+ context->task_runner(), FROM_HERE,
Bind(&FileUtilHelper::Move,
context, src_util, dest_util, src_url, dest_url),
callback);
@@ -169,7 +169,7 @@ bool FileSystemFileUtilProxy::EnsureFileExists(
const FileSystemURL& url,
const EnsureFileExistsCallback& callback) {
EnsureFileExistsHelper* helper = new EnsureFileExistsHelper;
- return context->file_task_runner()->PostTaskAndReply(
+ return context->task_runner()->PostTaskAndReply(
FROM_HERE,
Bind(&EnsureFileExistsHelper::RunWork, Unretained(helper),
file_util, context, url),
@@ -185,7 +185,7 @@ bool FileSystemFileUtilProxy::CreateDirectory(
bool recursive,
const StatusCallback& callback) {
return base::FileUtilProxy::RelayFileTask(
- context->file_task_runner(), FROM_HERE,
+ context->task_runner(), FROM_HERE,
Bind(&FileSystemFileUtil::CreateDirectory, Unretained(file_util),
context, url, exclusive, recursive),
callback);
@@ -198,7 +198,7 @@ bool FileSystemFileUtilProxy::GetFileInfo(
const FileSystemURL& url,
const GetFileInfoCallback& callback) {
GetFileInfoHelper* helper = new GetFileInfoHelper;
- return context->file_task_runner()->PostTaskAndReply(
+ return context->task_runner()->PostTaskAndReply(
FROM_HERE,
Bind(&GetFileInfoHelper::GetFileInfo, Unretained(helper),
file_util, context, url),
@@ -212,7 +212,7 @@ bool FileSystemFileUtilProxy::CreateSnapshotFile(
const FileSystemURL& url,
const SnapshotFileCallback& callback) {
GetFileInfoHelper* helper = new GetFileInfoHelper;
- return context->file_task_runner()->PostTaskAndReply(
+ return context->task_runner()->PostTaskAndReply(
FROM_HERE,
Bind(&GetFileInfoHelper::CreateSnapshotFile, Unretained(helper),
file_util, context, url),
@@ -226,7 +226,7 @@ bool FileSystemFileUtilProxy::ReadDirectory(
const FileSystemURL& url,
const ReadDirectoryCallback& callback) {
ReadDirectoryHelper* helper = new ReadDirectoryHelper;
- return context->file_task_runner()->PostTaskAndReply(
+ return context->task_runner()->PostTaskAndReply(
FROM_HERE,
Bind(&ReadDirectoryHelper::RunWork, Unretained(helper),
file_util, context, url),
@@ -242,7 +242,7 @@ bool FileSystemFileUtilProxy::Touch(
const base::Time& last_modified_time,
const StatusCallback& callback) {
return base::FileUtilProxy::RelayFileTask(
- context->file_task_runner(), FROM_HERE,
+ context->task_runner(), FROM_HERE,
Bind(&FileSystemFileUtil::Touch, Unretained(file_util),
context, url, last_access_time, last_modified_time),
callback);
@@ -256,7 +256,7 @@ bool FileSystemFileUtilProxy::Truncate(
int64 length,
const StatusCallback& callback) {
return base::FileUtilProxy::RelayFileTask(
- context->file_task_runner(), FROM_HERE,
+ context->task_runner(), FROM_HERE,
Bind(&FileSystemFileUtil::Truncate, Unretained(file_util),
context, url, length),
callback);

Powered by Google App Engine
This is Rietveld 408576698