| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CONTENT_RENDERER_SCHEDULER_BASE_TASK_QUEUE_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_SCHEDULER_BASE_TASK_QUEUE_IMPL_H_ |
| 6 #define CONTENT_RENDERER_SCHEDULER_BASE_TASK_QUEUE_IMPL_H_ | 6 #define CONTENT_RENDERER_SCHEDULER_BASE_TASK_QUEUE_IMPL_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 | 9 |
| 10 #include "base/pending_task.h" | 10 #include "base/pending_task.h" |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 | 62 |
| 63 // TaskQueue implementation. | 63 // TaskQueue implementation. |
| 64 void UnregisterTaskQueue() override; | 64 void UnregisterTaskQueue() override; |
| 65 bool RunsTasksOnCurrentThread() const override; | 65 bool RunsTasksOnCurrentThread() const override; |
| 66 bool PostDelayedTask(const tracked_objects::Location& from_here, | 66 bool PostDelayedTask(const tracked_objects::Location& from_here, |
| 67 const base::Closure& task, | 67 const base::Closure& task, |
| 68 base::TimeDelta delay) override; | 68 base::TimeDelta delay) override; |
| 69 bool PostNonNestableDelayedTask(const tracked_objects::Location& from_here, | 69 bool PostNonNestableDelayedTask(const tracked_objects::Location& from_here, |
| 70 const base::Closure& task, | 70 const base::Closure& task, |
| 71 base::TimeDelta delay) override; | 71 base::TimeDelta delay) override; |
| 72 bool PostDelayedTaskAt(const tracked_objects::Location& from_here, | |
| 73 const base::Closure& task, | |
| 74 base::TimeTicks desired_run_time) override; | |
| 75 | 72 |
| 76 bool IsQueueEnabled() const override; | 73 bool IsQueueEnabled() const override; |
| 77 QueueState GetQueueState() const override; | 74 QueueState GetQueueState() const override; |
| 78 void SetQueuePriority(QueuePriority priority) override; | 75 void SetQueuePriority(QueuePriority priority) override; |
| 79 void PumpQueue() override; | 76 void PumpQueue() override; |
| 80 void SetPumpPolicy(PumpPolicy pump_policy) override; | 77 void SetPumpPolicy(PumpPolicy pump_policy) override; |
| 81 void AddTaskObserver(base::MessageLoop::TaskObserver* task_observer) override; | 78 void AddTaskObserver(base::MessageLoop::TaskObserver* task_observer) override; |
| 82 void RemoveTaskObserver( | 79 void RemoveTaskObserver( |
| 83 base::MessageLoop::TaskObserver* task_observer) override; | 80 base::MessageLoop::TaskObserver* task_observer) override; |
| 84 | 81 |
| (...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 250 const bool should_monitor_quiescence_; | 247 const bool should_monitor_quiescence_; |
| 251 const bool should_notify_observers_; | 248 const bool should_notify_observers_; |
| 252 | 249 |
| 253 DISALLOW_COPY_AND_ASSIGN(TaskQueueImpl); | 250 DISALLOW_COPY_AND_ASSIGN(TaskQueueImpl); |
| 254 }; | 251 }; |
| 255 | 252 |
| 256 } // namespace internal | 253 } // namespace internal |
| 257 } // namespace scheduler | 254 } // namespace scheduler |
| 258 | 255 |
| 259 #endif // CONTENT_RENDERER_SCHEDULER_BASE_TASK_QUEUE_IMPL_H_ | 256 #endif // CONTENT_RENDERER_SCHEDULER_BASE_TASK_QUEUE_IMPL_H_ |
| OLD | NEW |