Add an UMA stat to be able to see if the User pods are show on start screen,
[chromium-blink-merge.git] / content / child / scheduler / null_idle_task_runner.h
blob31a83fc5098546184ed6860f5f54935145d45efb
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_NULL_IDLE_TASK_RUNNER_H_
6 #define CONTENT_CHILD_SCHEDULER_NULL_IDLE_TASK_RUNNER_H_
8 #include "content/child/scheduler/single_thread_idle_task_runner.h"
10 namespace content {
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(
19 const tracked_objects::Location& from_here,
20 const IdleTask& idle_task) override;
22 void PostIdleTaskAfterWakeup(
23 const tracked_objects::Location& from_here,
24 const IdleTask& idle_task) override;
26 protected:
27 ~NullIdleTaskRunner() override;
29 private:
30 DISALLOW_COPY_AND_ASSIGN(NullIdleTaskRunner);
33 } // namespace content
35 #endif // CONTENT_CHILD_SCHEDULER_NULL_IDLE_TASK_RUNNER_H_