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

Unified Diff: webkit/fileapi/file_system_task_runners.cc

Issue 10829147: Make MediaFileUtil run on thread pool. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 4 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_task_runners.cc
diff --git a/webkit/fileapi/file_system_task_runners.cc b/webkit/fileapi/file_system_task_runners.cc
new file mode 100644
index 0000000000000000000000000000000000000000..fbd2606c4d99fb9e451598e6dde62fe1d5c5605f
--- /dev/null
+++ b/webkit/fileapi/file_system_task_runners.cc
@@ -0,0 +1,34 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "webkit/fileapi/file_system_task_runners.h"
+
+#include "base/message_loop_proxy.h"
+#include "base/sequenced_task_runner.h"
+#include "base/single_thread_task_runner.h"
+
+namespace fileapi {
+
+FileSystemTaskRunners::FileSystemTaskRunners(
+ base::SingleThreadTaskRunner* io_task_runner,
+ base::SingleThreadTaskRunner* file_task_runner,
+ base::SequencedTaskRunner* media_task_runner)
+ : io_task_runner_(io_task_runner),
+ file_task_runner_(file_task_runner),
+ media_task_runner_(media_task_runner) {
+}
+
+// static
+scoped_ptr<FileSystemTaskRunners>
+FileSystemTaskRunners::CreateMockTaskRunners() {
+ return make_scoped_ptr(new FileSystemTaskRunners(
+ base::MessageLoopProxy::current(),
+ base::MessageLoopProxy::current(),
+ base::MessageLoopProxy::current()));
+}
+
+FileSystemTaskRunners::~FileSystemTaskRunners() {
+}
+
+} // namespace fileapi

Powered by Google App Engine
This is Rietveld 408576698