Give names to all utility processes.
[chromium-blink-merge.git] / chrome / browser / printing / print_job_worker_owner.cc
blob843ab4616d1872222ec996874968908367603284
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.
5 #include "chrome/browser/printing/print_job_worker_owner.h"
7 #include "base/message_loop/message_loop.h"
9 namespace printing {
11 PrintJobWorkerOwner::PrintJobWorkerOwner()
12 : task_runner_(base::MessageLoop::current()->task_runner()) {
15 PrintJobWorkerOwner::~PrintJobWorkerOwner() {
18 bool PrintJobWorkerOwner::RunsTasksOnCurrentThread() const {
19 return task_runner_->RunsTasksOnCurrentThread();
22 bool PrintJobWorkerOwner::PostTask(const tracked_objects::Location& from_here,
23 const base::Closure& task) {
24 return task_runner_->PostTask(from_here, task);
27 } // namespace printing