summaryrefslogtreecommitdiffstats
path: root/webkit/browser/fileapi/file_system_task_runners.cc
blob: 819c2e7c839dc137beb9c29dc834c65ae684fcb7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// 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/browser/fileapi/file_system_task_runners.h"

#include "base/message_loop/message_loop_proxy.h"
#include "base/single_thread_task_runner.h"

namespace fileapi {

FileSystemTaskRunners::FileSystemTaskRunners(
    base::SingleThreadTaskRunner* io_task_runner,
    base::SequencedTaskRunner* file_task_runner)
    : io_task_runner_(io_task_runner),
      file_task_runner_(file_task_runner) {
}

// static
scoped_ptr<FileSystemTaskRunners>
FileSystemTaskRunners::CreateMockTaskRunners() {
  return make_scoped_ptr(
      new FileSystemTaskRunners(base::MessageLoopProxy::current().get(),
                                base::MessageLoopProxy::current().get()));
}

FileSystemTaskRunners::~FileSystemTaskRunners() {
}

}  // namespace fileapi