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

Unified Diff: webkit/fileapi/isolated_mount_point_provider.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/isolated_mount_point_provider.cc
diff --git a/webkit/fileapi/isolated_mount_point_provider.cc b/webkit/fileapi/isolated_mount_point_provider.cc
index 7e66106949bf6ded23544e23b6304ec346cb09b6..601c9de6679531aaf180befb8f4ca8a860ffa408 100644
--- a/webkit/fileapi/isolated_mount_point_provider.cc
+++ b/webkit/fileapi/isolated_mount_point_provider.cc
@@ -35,8 +35,10 @@ IsolatedContext* isolated_context() {
} // namespace
-IsolatedMountPointProvider::IsolatedMountPointProvider()
+IsolatedMountPointProvider::IsolatedMountPointProvider(
+ base::SequencedTaskRunner* media_task_runner)
: media_path_filter_(new MediaPathFilter()),
+ media_task_runner_(media_task_runner),
isolated_file_util_(new IsolatedFileUtil()),
dragged_file_util_(new DraggedFileUtil()),
native_media_file_util_(new NativeMediaFileUtil()) {
@@ -113,8 +115,10 @@ IsolatedMountPointProvider::CreateFileSystemOperation(
scoped_ptr<FileSystemOperationContext> operation_context(
new FileSystemOperationContext(context));
if (url.type() == kFileSystemTypeNativeMedia ||
- url.type() == kFileSystemTypeDeviceMedia)
+ url.type() == kFileSystemTypeDeviceMedia) {
operation_context->set_media_path_filter(media_path_filter_.get());
+ operation_context->SetTaskRunner(media_task_runner_.get());
+ }
return new LocalFileSystemOperation(context, operation_context.Pass());
}

Powered by Google App Engine
This is Rietveld 408576698