Move blink scheduler implementation into a component
[chromium-blink-merge.git] / components / scheduler / child / null_idle_task_runner.h
blob734d0c152ce1d75dc165933457823db88e840a10
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 COMPONENTS_SCHEDULER_CHILD_NULL_IDLE_TASK_RUNNER_H_
6 #define COMPONENTS_SCHEDULER_CHILD_NULL_IDLE_TASK_RUNNER_H_
8 #include "components/scheduler/child/single_thread_idle_task_runner.h"
10 namespace scheduler {
12 class NullIdleTaskRunner : public SingleThreadIdleTaskRunner {
13 public:
14 NullIdleTaskRunner();
15 void PostIdleTask(const tracked_objects::Location& from_here,
16 const IdleTask& idle_task) override;
18 void PostNonNestableIdleTask(const tracked_objects::Location& from_here,
19 const IdleTask& idle_task) override;
21 void PostIdleTaskAfterWakeup(const tracked_objects::Location& from_here,
22 const IdleTask& idle_task) override;
24 protected:
25 ~NullIdleTaskRunner() override;
27 private:
28 DISALLOW_COPY_AND_ASSIGN(NullIdleTaskRunner);
31 } // namespace scheduler
33 #endif // COMPONENTS_SCHEDULER_CHILD_NULL_IDLE_TASK_RUNNER_H_