| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 COMPONENTS_SCHEDULER_RENDERER_RENDERER_SCHEDULER_IMPL_H_ | 5 #ifndef COMPONENTS_SCHEDULER_RENDERER_RENDERER_SCHEDULER_IMPL_H_ |
| 6 #define COMPONENTS_SCHEDULER_RENDERER_RENDERER_SCHEDULER_IMPL_H_ | 6 #define COMPONENTS_SCHEDULER_RENDERER_RENDERER_SCHEDULER_IMPL_H_ |
| 7 | 7 |
| 8 #include "base/atomicops.h" | 8 #include "base/atomicops.h" |
| 9 #include "base/macros.h" | 9 #include "base/macros.h" |
| 10 #include "base/synchronization/lock.h" | 10 #include "base/synchronization/lock.h" |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 bool IsHighPriorityWorkAnticipated() override; | 69 bool IsHighPriorityWorkAnticipated() override; |
| 70 bool ShouldYieldForHighPriorityWork() override; | 70 bool ShouldYieldForHighPriorityWork() override; |
| 71 bool CanExceedIdleDeadlineIfRequired() const override; | 71 bool CanExceedIdleDeadlineIfRequired() const override; |
| 72 void AddTaskObserver(base::MessageLoop::TaskObserver* task_observer) override; | 72 void AddTaskObserver(base::MessageLoop::TaskObserver* task_observer) override; |
| 73 void RemoveTaskObserver( | 73 void RemoveTaskObserver( |
| 74 base::MessageLoop::TaskObserver* task_observer) override; | 74 base::MessageLoop::TaskObserver* task_observer) override; |
| 75 void Shutdown() override; | 75 void Shutdown() override; |
| 76 void SuspendTimerQueue() override; | 76 void SuspendTimerQueue() override; |
| 77 void ResumeTimerQueue() override; | 77 void ResumeTimerQueue() override; |
| 78 void SetTimerQueueSuspensionWhenBackgroundedEnabled(bool enabled) override; | 78 void SetTimerQueueSuspensionWhenBackgroundedEnabled(bool enabled) override; |
| 79 double VirtualTimeSeconds() const override; | |
| 80 double MonotonicallyIncreasingVirtualTimeSeconds() const override; | |
| 81 | 79 |
| 82 // RenderWidgetSignals::Observer implementation: | 80 // RenderWidgetSignals::Observer implementation: |
| 83 void SetAllRenderWidgetsHidden(bool hidden) override; | 81 void SetAllRenderWidgetsHidden(bool hidden) override; |
| 84 void SetHasVisibleRenderWidgetWithTouchHandler( | 82 void SetHasVisibleRenderWidgetWithTouchHandler( |
| 85 bool has_visible_render_widget_with_touch_handler) override; | 83 bool has_visible_render_widget_with_touch_handler) override; |
| 86 | 84 |
| 87 // SchedulerHelper::Observer implementation: | 85 // SchedulerHelper::Observer implementation: |
| 88 void OnUnregisterTaskQueue(const scoped_refptr<TaskQueue>& queue) override; | 86 void OnUnregisterTaskQueue(const scoped_refptr<TaskQueue>& queue) override; |
| 89 void OnTriedToExecuteBlockedTask(const TaskQueue& queue, | 87 void OnTriedToExecuteBlockedTask(const TaskQueue& queue, |
| 90 const base::PendingTask& task) override; | 88 const base::PendingTask& task) override; |
| (...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 405 | 403 |
| 406 PollableThreadSafeFlag policy_may_need_update_; | 404 PollableThreadSafeFlag policy_may_need_update_; |
| 407 base::WeakPtrFactory<RendererSchedulerImpl> weak_factory_; | 405 base::WeakPtrFactory<RendererSchedulerImpl> weak_factory_; |
| 408 | 406 |
| 409 DISALLOW_COPY_AND_ASSIGN(RendererSchedulerImpl); | 407 DISALLOW_COPY_AND_ASSIGN(RendererSchedulerImpl); |
| 410 }; | 408 }; |
| 411 | 409 |
| 412 } // namespace scheduler | 410 } // namespace scheduler |
| 413 | 411 |
| 414 #endif // COMPONENTS_SCHEDULER_RENDERER_RENDERER_SCHEDULER_IMPL_H_ | 412 #endif // COMPONENTS_SCHEDULER_RENDERER_RENDERER_SCHEDULER_IMPL_H_ |
| OLD | NEW |