Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(34)

Unified Diff: components/scheduler/child/null_idle_task_runner.h

Issue 1058873010: Move blink scheduler implementation into a component (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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_

Powered by Google App Engine
This is Rietveld 408576698