1// Copyright 2014 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 "chrome/browser/printing/print_job_worker_owner.h"
6
7#include "base/message_loop/message_loop.h"
8
9namespace printing {
10
11PrintJobWorkerOwner::PrintJobWorkerOwner()
12    : task_runner_(base::MessageLoop::current()->task_runner()) {
13}
14
15PrintJobWorkerOwner::~PrintJobWorkerOwner() {
16}
17
18bool PrintJobWorkerOwner::RunsTasksOnCurrentThread() const {
19  return task_runner_->RunsTasksOnCurrentThread();
20}
21
22bool PrintJobWorkerOwner::PostTask(const tracked_objects::Location& from_here,
23                                   const base::Closure& task) {
24  return task_runner_->PostTask(from_here, task);
25}
26
27}  // namespace printing
28