Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(432)

Side by Side Diff: content/test/fake_renderer_scheduler.h

Issue 1652083002: Prepare for per-webview virtual time (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « content/renderer/renderer_blink_platform_impl.cc ('k') | content/test/fake_renderer_scheduler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698