// Copyright 2014 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 "chrome/browser/printing/print_job_worker_owner.h"

#include "base/location.h"
#include "base/single_thread_task_runner.h"
#include "base/threading/thread_task_runner_handle.h"

namespace printing {

PrintJobWorkerOwner::PrintJobWorkerOwner()
    : task_runner_(base::ThreadTaskRunnerHandle::Get()) {}

PrintJobWorkerOwner::~PrintJobWorkerOwner() {}

bool PrintJobWorkerOwner::RunsTasksInCurrentSequence() const {
  return task_runner_->RunsTasksInCurrentSequence();
}

bool PrintJobWorkerOwner::PostTask(const base::Location& from_here,
                                   const base::Closure& task) {
  return task_runner_->PostTask(from_here, task);
}

}  // namespace printing
