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

Side by Side 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: build fix for windows 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "webkit/fileapi/file_system_task_runners.h"
6
7 #include "base/message_loop_proxy.h"
8 #include "base/sequenced_task_runner.h"
9 #include "base/single_thread_task_runner.h"
10
11 namespace fileapi {
12
13 FileSystemTaskRunners::FileSystemTaskRunners(
14 base::SingleThreadTaskRunner* io_task_runner,
15 base::SingleThreadTaskRunner* file_task_runner,
16 base::SequencedTaskRunner* media_task_runner)
17 : io_task_runner_(io_task_runner),
18 file_task_runner_(file_task_runner),
19 media_task_runner_(media_task_runner) {
20 }
21
22 // static
23 scoped_ptr<FileSystemTaskRunners>
24 FileSystemTaskRunners::CreateMockTaskRunners() {
25 return make_scoped_ptr(new FileSystemTaskRunners(
26 base::MessageLoopProxy::current(),
27 base::MessageLoopProxy::current(),
28 base::MessageLoopProxy::current()));
29 }
30
31 FileSystemTaskRunners::~FileSystemTaskRunners() {
32 }
33
34 } // namespace fileapi
OLDNEW
« no previous file with comments | « webkit/fileapi/file_system_task_runners.h ('k') | webkit/fileapi/file_system_url_request_job_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698