summaryrefslogtreecommitdiffstats
path: root/chrome/browser/printing/print_job_worker_owner.cc
blob: 843ab4616d1872222ec996874968908367603284 (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
// 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/message_loop/message_loop.h"

namespace printing {

PrintJobWorkerOwner::PrintJobWorkerOwner()
    : task_runner_(base::MessageLoop::current()->task_runner()) {
}

PrintJobWorkerOwner::~PrintJobWorkerOwner() {
}

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

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

}  // namespace printing