| Index: components/scheduler/child/null_idle_task_runner.h
|
| diff --git a/components/scheduler/child/null_idle_task_runner.h b/components/scheduler/child/null_idle_task_runner.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..734d0c152ce1d75dc165933457823db88e840a10
|
| --- /dev/null
|
| +++ b/components/scheduler/child/null_idle_task_runner.h
|
| @@ -0,0 +1,33 @@
|
| +// Copyright 2015 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.
|
| +
|
| +#ifndef COMPONENTS_SCHEDULER_CHILD_NULL_IDLE_TASK_RUNNER_H_
|
| +#define COMPONENTS_SCHEDULER_CHILD_NULL_IDLE_TASK_RUNNER_H_
|
| +
|
| +#include "components/scheduler/child/single_thread_idle_task_runner.h"
|
| +
|
| +namespace scheduler {
|
| +
|
| +class NullIdleTaskRunner : public SingleThreadIdleTaskRunner {
|
| + public:
|
| + NullIdleTaskRunner();
|
| + void PostIdleTask(const tracked_objects::Location& from_here,
|
| + const IdleTask& idle_task) override;
|
| +
|
| + void PostNonNestableIdleTask(const tracked_objects::Location& from_here,
|
| + const IdleTask& idle_task) override;
|
| +
|
| + void PostIdleTaskAfterWakeup(const tracked_objects::Location& from_here,
|
| + const IdleTask& idle_task) override;
|
| +
|
| + protected:
|
| + ~NullIdleTaskRunner() override;
|
| +
|
| + private:
|
| + DISALLOW_COPY_AND_ASSIGN(NullIdleTaskRunner);
|
| +};
|
| +
|
| +} // namespace scheduler
|
| +
|
| +#endif // COMPONENTS_SCHEDULER_CHILD_NULL_IDLE_TASK_RUNNER_H_
|
|
|