print_job_worker_owner.cc 855 B

12345678910111213141516171819202122232425262728
  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. #include "chrome/browser/printing/print_job_worker_owner.h"
  5. #include "base/location.h"
  6. #include "base/single_thread_task_runner.h"
  7. #include "base/threading/thread_task_runner_handle.h"
  8. namespace printing {
  9. PrintJobWorkerOwner::PrintJobWorkerOwner()
  10. : task_runner_(base::ThreadTaskRunnerHandle::Get()) {}
  11. PrintJobWorkerOwner::~PrintJobWorkerOwner() {}
  12. bool PrintJobWorkerOwner::RunsTasksInCurrentSequence() const {
  13. return task_runner_->RunsTasksInCurrentSequence();
  14. }
  15. bool PrintJobWorkerOwner::PostTask(const base::Location& from_here,
  16. const base::Closure& task) {
  17. return task_runner_->PostTask(from_here, task);
  18. }
  19. } // namespace printing