Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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. | |
| 4 | |
| 5 #ifndef COMPONENTS_SCHEDULER_NULL_CHILD_TASK_QUEUE_H_ | |
| 6 #define COMPONENTS_SCHEDULER_NULL_CHILD_TASK_QUEUE_H_ | |
| 7 | |
| 8 #include "components/scheduler/child/task_queue.h" | |
| 9 #include "components/scheduler/scheduler_export.h" | |
| 10 | |
| 11 namespace scheduler { | |
| 12 | |
| 13 class SCHEDULER_EXPORT NullTaskQueue : public TaskQueue { | |
|
alex clarke (OOO till 29th)
2015/07/16 09:29:00
The .cc file for this seems to be missing.
Sami
2015/07/16 12:19:32
Welp I guess that explains the failing try jobs. T
| |
| 14 public: | |
| 15 NullTaskQueue(scoped_refptr<base::SingleThreadTaskRunner> task_runner); | |
| 16 | |
| 17 // TaskQueue implementation | |
| 18 bool RunsTasksOnCurrentThread() const override; | |
| 19 bool PostDelayedTask(const tracked_objects::Location& from_here, | |
| 20 const base::Closure& task, | |
| 21 base::TimeDelta delay) override; | |
| 22 bool PostNonNestableDelayedTask(const tracked_objects::Location& from_here, | |
| 23 const base::Closure& task, | |
| 24 base::TimeDelta delay) override; | |
| 25 bool PostDelayedTaskAt(const tracked_objects::Location& from_here, | |
| 26 const base::Closure& task, | |
| 27 base::TimeTicks desired_run_time) override; | |
| 28 | |
| 29 protected: | |
| 30 ~NullTaskQueue() override; | |
| 31 | |
| 32 scoped_refptr<base::SingleThreadTaskRunner> task_runner_; | |
| 33 | |
| 34 DISALLOW_COPY_AND_ASSIGN(NullTaskQueue); | |
| 35 }; | |
| 36 | |
| 37 } // namespace scheduler | |
| 38 | |
| 39 #endif // COMPONENTS_SCHEDULER_CHILD_NULL_TASK_QUEUE_H_ | |
| OLD | NEW |