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