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 <stddef.h> | 8 #include <stddef.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 | 83 |
84 // TaskQueue implementation. | 84 // TaskQueue implementation. |
85 void UnregisterTaskQueue() override; | 85 void UnregisterTaskQueue() override; |
86 bool RunsTasksOnCurrentThread() const override; | 86 bool RunsTasksOnCurrentThread() const override; |
87 bool PostDelayedTask(const tracked_objects::Location& from_here, | 87 bool PostDelayedTask(const tracked_objects::Location& from_here, |
88 const base::Closure& task, | 88 const base::Closure& task, |
89 base::TimeDelta delay) override; | 89 base::TimeDelta delay) override; |
90 bool PostNonNestableDelayedTask(const tracked_objects::Location& from_here, | 90 bool PostNonNestableDelayedTask(const tracked_objects::Location& from_here, |
91 const base::Closure& task, | 91 const base::Closure& task, |
92 base::TimeDelta delay) override; | 92 base::TimeDelta delay) override; |
| 93 std::string GetThreadName() const override; |
93 | 94 |
94 void SetQueueEnabled(bool enabled) override; | 95 void SetQueueEnabled(bool enabled) override; |
95 bool IsQueueEnabled() const override; | 96 bool IsQueueEnabled() const override; |
96 bool IsEmpty() const override; | 97 bool IsEmpty() const override; |
97 bool HasPendingImmediateWork() const override; | 98 bool HasPendingImmediateWork() const override; |
98 bool NeedsPumping() const override; | 99 bool NeedsPumping() const override; |
99 void SetQueuePriority(QueuePriority priority) override; | 100 void SetQueuePriority(QueuePriority priority) override; |
100 QueuePriority GetQueuePriority() const override; | 101 QueuePriority GetQueuePriority() const override; |
101 void PumpQueue(bool may_post_dowork) override; | 102 void PumpQueue(bool may_post_dowork) override; |
102 void SetPumpPolicy(PumpPolicy pump_policy) override; | 103 void SetPumpPolicy(PumpPolicy pump_policy) override; |
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
300 const bool should_notify_observers_; | 301 const bool should_notify_observers_; |
301 const bool should_report_when_execution_blocked_; | 302 const bool should_report_when_execution_blocked_; |
302 | 303 |
303 DISALLOW_COPY_AND_ASSIGN(TaskQueueImpl); | 304 DISALLOW_COPY_AND_ASSIGN(TaskQueueImpl); |
304 }; | 305 }; |
305 | 306 |
306 } // namespace internal | 307 } // namespace internal |
307 } // namespace scheduler | 308 } // namespace scheduler |
308 | 309 |
309 #endif // CONTENT_RENDERER_SCHEDULER_BASE_TASK_QUEUE_IMPL_H_ | 310 #endif // CONTENT_RENDERER_SCHEDULER_BASE_TASK_QUEUE_IMPL_H_ |
OLD | NEW |