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 #ifndef CONTENT_CHILD_SCHEDULER_WORKER_SCHEDULER_H_
6 #define CONTENT_CHILD_SCHEDULER_WORKER_SCHEDULER_H_
8 #include "base/message_loop/message_loop.h"
9 #include "content/child/scheduler/child_scheduler.h"
10 #include "content/child/scheduler/single_thread_idle_task_runner.h"
11 #include "content/common/content_export.h"
19 class CONTENT_EXPORT WorkerScheduler
: public ChildScheduler
{
21 ~WorkerScheduler() override
;
22 static scoped_ptr
<WorkerScheduler
> Create(base::MessageLoop
* message_loop
);
24 // Must be called before the scheduler can be used. Does any post construction
25 // initialization needed such as initializing idle period detection.
26 virtual void Init() = 0;
30 DISALLOW_COPY_AND_ASSIGN(WorkerScheduler
);
33 } // namespace content
35 #endif // CONTENT_CHILD_SCHEDULER_WORKER_SCHEDULER_H_