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

Unified Diff: webkit/fileapi/isolated_mount_point_provider.cc

Issue 10197007: Change webkit/{fileapi,quota} code to use TaskRunner. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: test fix 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
Index: webkit/fileapi/isolated_mount_point_provider.cc
diff --git a/webkit/fileapi/isolated_mount_point_provider.cc b/webkit/fileapi/isolated_mount_point_provider.cc
index 02bf8ae8cbdb1d799e240893eb8540233f1ea5a6..b505bae9f7247e96640b0634d0f5c863421d6092 100644
--- a/webkit/fileapi/isolated_mount_point_provider.cc
+++ b/webkit/fileapi/isolated_mount_point_provider.cc
@@ -10,6 +10,7 @@
#include "base/file_path.h"
#include "base/logging.h"
#include "base/message_loop_proxy.h"
+#include "base/task_runner.h"
#include "googleurl/src/gurl.h"
#include "webkit/blob/local_file_reader.h"
#include "webkit/fileapi/file_system_callback_dispatcher.h"
@@ -95,15 +96,15 @@ IsolatedMountPointProvider::CreateFileSystemOperation(
const GURL& origin_url,
FileSystemType file_system_type,
const FilePath& virtual_path,
- base::MessageLoopProxy* file_proxy,
+ base::TaskRunner* task_runner,
FileSystemContext* context) const {
- return new FileSystemOperation(file_proxy, context);
+ return new FileSystemOperation(task_runner, context);
}
webkit_blob::FileReader* IsolatedMountPointProvider::CreateFileReader(
const GURL& url,
int64 offset,
- base::MessageLoopProxy* file_proxy,
+ base::TaskRunner* task_runner,
FileSystemContext* context) const {
GURL origin_url;
FileSystemType file_system_type = kFileSystemTypeUnknown;
@@ -117,7 +118,7 @@ webkit_blob::FileReader* IsolatedMountPointProvider::CreateFileReader(
if (path.empty())
return NULL;
return new webkit_blob::LocalFileReader(
- file_proxy, path, offset, base::Time());
+ task_runner, path, offset, base::Time());
}
IsolatedContext* IsolatedMountPointProvider::isolated_context() const {

Powered by Google App Engine
This is Rietveld 408576698