| 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 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 147 void SetQueuePriority(QueuePriority priority) override; | 147 void SetQueuePriority(QueuePriority priority) override; |
| 148 QueuePriority GetQueuePriority() const override; | 148 QueuePriority GetQueuePriority() const override; |
| 149 void AddTaskObserver(base::MessageLoop::TaskObserver* task_observer) override; | 149 void AddTaskObserver(base::MessageLoop::TaskObserver* task_observer) override; |
| 150 void RemoveTaskObserver( | 150 void RemoveTaskObserver( |
| 151 base::MessageLoop::TaskObserver* task_observer) override; | 151 base::MessageLoop::TaskObserver* task_observer) override; |
| 152 void SetTimeDomain(TimeDomain* time_domain) override; | 152 void SetTimeDomain(TimeDomain* time_domain) override; |
| 153 TimeDomain* GetTimeDomain() const override; | 153 TimeDomain* GetTimeDomain() const override; |
| 154 void SetBlameContext(base::trace_event::BlameContext* blame_context) override; | 154 void SetBlameContext(base::trace_event::BlameContext* blame_context) override; |
| 155 void InsertFence(InsertFencePosition position) override; | 155 void InsertFence(InsertFencePosition position) override; |
| 156 void RemoveFence() override; | 156 void RemoveFence() override; |
| 157 bool HasFence() const override; |
| 157 bool BlockedByFence() const override; | 158 bool BlockedByFence() const override; |
| 158 const char* GetName() const override; | 159 const char* GetName() const override; |
| 159 QueueType GetQueueType() const override; | 160 QueueType GetQueueType() const override; |
| 160 void SetObserver(Observer* observer) override; | 161 void SetObserver(Observer* observer) override; |
| 161 | 162 |
| 162 // Returns true if a (potentially hypothetical) task with the specified | 163 // Returns true if a (potentially hypothetical) task with the specified |
| 163 // |enqueue_order| could run on the queue. Must be called from the main | 164 // |enqueue_order| could run on the queue. Must be called from the main |
| 164 // thread. | 165 // thread. |
| 165 bool CouldTaskRun(EnqueueOrder enqueue_order) const; | 166 bool CouldTaskRun(EnqueueOrder enqueue_order) const; |
| 166 | 167 |
| (...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 387 const bool should_report_when_execution_blocked_; | 388 const bool should_report_when_execution_blocked_; |
| 388 | 389 |
| 389 DISALLOW_COPY_AND_ASSIGN(TaskQueueImpl); | 390 DISALLOW_COPY_AND_ASSIGN(TaskQueueImpl); |
| 390 }; | 391 }; |
| 391 | 392 |
| 392 } // namespace internal | 393 } // namespace internal |
| 393 } // namespace scheduler | 394 } // namespace scheduler |
| 394 } // namespace blink | 395 } // namespace blink |
| 395 | 396 |
| 396 #endif // THIRD_PARTY_WEBKIT_SOURCE_PLATFORM_SCHEDULER_BASE_TASK_QUEUE_IMPL_H_ | 397 #endif // THIRD_PARTY_WEBKIT_SOURCE_PLATFORM_SCHEDULER_BASE_TASK_QUEUE_IMPL_H_ |
| OLD | NEW |