| 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 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 bool HasPendingImmediateWork() const override; | 124 bool HasPendingImmediateWork() const override; |
| 125 base::Optional<base::TimeTicks> GetNextScheduledWakeUp() override; |
| 125 void SetQueuePriority(QueuePriority priority) override; | 126 void SetQueuePriority(QueuePriority priority) override; |
| 126 QueuePriority GetQueuePriority() const override; | 127 QueuePriority GetQueuePriority() const override; |
| 127 void AddTaskObserver(base::MessageLoop::TaskObserver* task_observer) override; | 128 void AddTaskObserver(base::MessageLoop::TaskObserver* task_observer) override; |
| 128 void RemoveTaskObserver( | 129 void RemoveTaskObserver( |
| 129 base::MessageLoop::TaskObserver* task_observer) override; | 130 base::MessageLoop::TaskObserver* task_observer) override; |
| 130 void SetTimeDomain(TimeDomain* time_domain) override; | 131 void SetTimeDomain(TimeDomain* time_domain) override; |
| 131 TimeDomain* GetTimeDomain() const override; | 132 TimeDomain* GetTimeDomain() const override; |
| 132 void SetBlameContext(base::trace_event::BlameContext* blame_context) override; | 133 void SetBlameContext(base::trace_event::BlameContext* blame_context) override; |
| 133 void InsertFence() override; | 134 void InsertFence() override; |
| 134 void RemoveFence() override; | 135 void RemoveFence() override; |
| (...skipping 162 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 |