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 CONTENT_TEST_FAKE_RENDERER_SCHEDULER_H_ | 5 #ifndef CONTENT_TEST_FAKE_RENDERER_SCHEDULER_H_ |
6 #define CONTENT_TEST_FAKE_RENDERER_SCHEDULER_H_ | 6 #define CONTENT_TEST_FAKE_RENDERER_SCHEDULER_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "components/scheduler/renderer/renderer_scheduler.h" | 9 #include "components/scheduler/renderer/renderer_scheduler.h" |
10 | 10 |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 bool IsHighPriorityWorkAnticipated() override; | 46 bool IsHighPriorityWorkAnticipated() override; |
47 bool CanExceedIdleDeadlineIfRequired() const override; | 47 bool CanExceedIdleDeadlineIfRequired() const override; |
48 bool ShouldYieldForHighPriorityWork() override; | 48 bool ShouldYieldForHighPriorityWork() override; |
49 void AddTaskObserver(base::MessageLoop::TaskObserver* task_observer) override; | 49 void AddTaskObserver(base::MessageLoop::TaskObserver* task_observer) override; |
50 void RemoveTaskObserver( | 50 void RemoveTaskObserver( |
51 base::MessageLoop::TaskObserver* task_observer) override; | 51 base::MessageLoop::TaskObserver* task_observer) override; |
52 void Shutdown() override; | 52 void Shutdown() override; |
53 void SuspendTimerQueue() override; | 53 void SuspendTimerQueue() override; |
54 void ResumeTimerQueue() override; | 54 void ResumeTimerQueue() override; |
55 void SetTimerQueueSuspensionWhenBackgroundedEnabled(bool enabled) override; | 55 void SetTimerQueueSuspensionWhenBackgroundedEnabled(bool enabled) override; |
56 double CurrentTimeSeconds() const override; | 56 double VirtualTimeSeconds() const override; |
57 double MonotonicallyIncreasingTimeSeconds() const override; | 57 double MonotonicallyIncreasingVirtualTimeSeconds() const override; |
58 | 58 |
59 private: | 59 private: |
60 DISALLOW_COPY_AND_ASSIGN(FakeRendererScheduler); | 60 DISALLOW_COPY_AND_ASSIGN(FakeRendererScheduler); |
61 }; | 61 }; |
62 | 62 |
63 } // namespace content | 63 } // namespace content |
64 | 64 |
65 #endif // CONTENT_TEST_FAKE_RENDERER_SCHEDULER_H_ | 65 #endif // CONTENT_TEST_FAKE_RENDERER_SCHEDULER_H_ |
OLD | NEW |