Chromium Code Reviews| 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 THIRD_PARTY_WEBKIT_SOURCE_PLATFORM_SCHEDULER_BASE_TASK_QUEUE_IMPL_H_ | 5 #ifndef THIRD_PARTY_WEBKIT_SOURCE_PLATFORM_SCHEDULER_BASE_TASK_QUEUE_IMPL_H_ |
| 6 #define THIRD_PARTY_WEBKIT_SOURCE_PLATFORM_SCHEDULER_BASE_TASK_QUEUE_IMPL_H_ | 6 #define THIRD_PARTY_WEBKIT_SOURCE_PLATFORM_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 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 114 bool RunsTasksOnCurrentThread() const override; | 114 bool RunsTasksOnCurrentThread() const override; |
| 115 bool PostDelayedTask(const tracked_objects::Location& from_here, | 115 bool PostDelayedTask(const tracked_objects::Location& from_here, |
| 116 const base::Closure& task, | 116 const base::Closure& task, |
| 117 base::TimeDelta delay) override; | 117 base::TimeDelta delay) override; |
| 118 bool PostNonNestableDelayedTask(const tracked_objects::Location& from_here, | 118 bool PostNonNestableDelayedTask(const tracked_objects::Location& from_here, |
| 119 const base::Closure& task, | 119 const base::Closure& task, |
| 120 base::TimeDelta delay) override; | 120 base::TimeDelta delay) override; |
| 121 void SetQueueEnabled(bool enabled) override; | 121 void SetQueueEnabled(bool enabled) override; |
| 122 bool IsQueueEnabled() const override; | 122 bool IsQueueEnabled() const override; |
| 123 bool IsEmpty() const override; | 123 bool IsEmpty() const override; |
| 124 unsigned GetNumberOfPendingTasks() const override; | |
|
Sami
2016/10/14 01:38:18
nit: Please use size_t instead of unsigned types.
tasak
2016/10/14 05:55:31
Done.
| |
| 124 bool HasPendingImmediateWork() const override; | 125 bool HasPendingImmediateWork() const override; |
| 125 base::Optional<base::TimeTicks> GetNextScheduledWakeUp() override; | 126 base::Optional<base::TimeTicks> GetNextScheduledWakeUp() override; |
| 126 void SetQueuePriority(QueuePriority priority) override; | 127 void SetQueuePriority(QueuePriority priority) override; |
| 127 QueuePriority GetQueuePriority() const override; | 128 QueuePriority GetQueuePriority() const override; |
| 128 void AddTaskObserver(base::MessageLoop::TaskObserver* task_observer) override; | 129 void AddTaskObserver(base::MessageLoop::TaskObserver* task_observer) override; |
| 129 void RemoveTaskObserver( | 130 void RemoveTaskObserver( |
| 130 base::MessageLoop::TaskObserver* task_observer) override; | 131 base::MessageLoop::TaskObserver* task_observer) override; |
| 131 void SetTimeDomain(TimeDomain* time_domain) override; | 132 void SetTimeDomain(TimeDomain* time_domain) override; |
| 132 TimeDomain* GetTimeDomain() const override; | 133 TimeDomain* GetTimeDomain() const override; |
| 133 void SetBlameContext(base::trace_event::BlameContext* blame_context) override; | 134 void SetBlameContext(base::trace_event::BlameContext* blame_context) override; |
| (...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 297 const bool should_report_when_execution_blocked_; | 298 const bool should_report_when_execution_blocked_; |
| 298 | 299 |
| 299 DISALLOW_COPY_AND_ASSIGN(TaskQueueImpl); | 300 DISALLOW_COPY_AND_ASSIGN(TaskQueueImpl); |
| 300 }; | 301 }; |
| 301 | 302 |
| 302 } // namespace internal | 303 } // namespace internal |
| 303 } // namespace scheduler | 304 } // namespace scheduler |
| 304 } // namespace blink | 305 } // namespace blink |
| 305 | 306 |
| 306 #endif // THIRD_PARTY_WEBKIT_SOURCE_PLATFORM_SCHEDULER_BASE_TASK_QUEUE_IMPL_H_ | 307 #endif // THIRD_PARTY_WEBKIT_SOURCE_PLATFORM_SCHEDULER_BASE_TASK_QUEUE_IMPL_H_ |
| OLD | NEW |