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/synchronization/lock.h" | 9 #include "base/synchronization/lock.h" |
10 #include "components/scheduler/base/pollable_thread_safe_flag.h" | 10 #include "components/scheduler/base/pollable_thread_safe_flag.h" |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 bool IsHighPriorityWorkAnticipated() override; | 63 bool IsHighPriorityWorkAnticipated() override; |
64 bool ShouldYieldForHighPriorityWork() override; | 64 bool ShouldYieldForHighPriorityWork() override; |
65 bool CanExceedIdleDeadlineIfRequired() const override; | 65 bool CanExceedIdleDeadlineIfRequired() const override; |
66 void AddTaskObserver(base::MessageLoop::TaskObserver* task_observer) override; | 66 void AddTaskObserver(base::MessageLoop::TaskObserver* task_observer) override; |
67 void RemoveTaskObserver( | 67 void RemoveTaskObserver( |
68 base::MessageLoop::TaskObserver* task_observer) override; | 68 base::MessageLoop::TaskObserver* task_observer) override; |
69 void Shutdown() override; | 69 void Shutdown() override; |
70 void SuspendTimerQueue() override; | 70 void SuspendTimerQueue() override; |
71 void ResumeTimerQueue() override; | 71 void ResumeTimerQueue() override; |
72 void SetTimerQueueSuspensionWhenBackgroundedEnabled(bool enabled) override; | 72 void SetTimerQueueSuspensionWhenBackgroundedEnabled(bool enabled) override; |
| 73 double CurrentTimeSeconds() const override; |
| 74 double MonotonicallyIncreasingTimeSeconds() const override; |
73 | 75 |
74 // RenderWidgetSignals::Observer implementation: | 76 // RenderWidgetSignals::Observer implementation: |
75 void SetAllRenderWidgetsHidden(bool hidden) override; | 77 void SetAllRenderWidgetsHidden(bool hidden) override; |
76 void SetHasVisibleRenderWidgetWithTouchHandler( | 78 void SetHasVisibleRenderWidgetWithTouchHandler( |
77 bool has_visible_render_widget_with_touch_handler) override; | 79 bool has_visible_render_widget_with_touch_handler) override; |
78 | 80 |
79 // TaskQueueManager::Observer implementation: | 81 // TaskQueueManager::Observer implementation: |
80 void OnUnregisterTaskQueue(const scoped_refptr<TaskQueue>& queue) override; | 82 void OnUnregisterTaskQueue(const scoped_refptr<TaskQueue>& queue) override; |
81 | 83 |
82 // Test helpers. | 84 // Test helpers. |
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
339 | 341 |
340 PollableThreadSafeFlag policy_may_need_update_; | 342 PollableThreadSafeFlag policy_may_need_update_; |
341 base::WeakPtrFactory<RendererSchedulerImpl> weak_factory_; | 343 base::WeakPtrFactory<RendererSchedulerImpl> weak_factory_; |
342 | 344 |
343 DISALLOW_COPY_AND_ASSIGN(RendererSchedulerImpl); | 345 DISALLOW_COPY_AND_ASSIGN(RendererSchedulerImpl); |
344 }; | 346 }; |
345 | 347 |
346 } // namespace scheduler | 348 } // namespace scheduler |
347 | 349 |
348 #endif // COMPONENTS_SCHEDULER_RENDERER_RENDERER_SCHEDULER_IMPL_H_ | 350 #endif // COMPONENTS_SCHEDULER_RENDERER_RENDERER_SCHEDULER_IMPL_H_ |
OLD | NEW |