1 // Copyright 2015 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 "components/scheduler/child/worker_scheduler.h"
7 #include "base/message_loop/message_loop.h"
8 #include "components/scheduler/child/scheduler_task_runner_delegate.h"
9 #include "components/scheduler/child/worker_scheduler_impl.h"
13 WorkerScheduler::WorkerScheduler() {
16 WorkerScheduler::~WorkerScheduler() {
20 scoped_ptr
<WorkerScheduler
> WorkerScheduler::Create(
21 scoped_refptr
<SchedulerTaskRunnerDelegate
> main_task_runner
) {
22 return make_scoped_ptr(new WorkerSchedulerImpl(main_task_runner
.Pass()));
25 } // namespace scheduler