Refactor WebsiteSettings to operate on a SecurityInfo
[chromium-blink-merge.git] / content / test / fake_renderer_scheduler.cc
blobdb095e7f89a91d6691ba4c462e63ebfe7a0a0bbf
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
3 // found in the LICENSE file.
5 #include "content/test/fake_renderer_scheduler.h"
7 namespace content {
9 FakeRendererScheduler::FakeRendererScheduler() {
12 FakeRendererScheduler::~FakeRendererScheduler() {
15 scoped_refptr<scheduler::TaskQueue> FakeRendererScheduler::DefaultTaskRunner() {
16 return nullptr;
19 scoped_refptr<base::SingleThreadTaskRunner>
20 FakeRendererScheduler::CompositorTaskRunner() {
21 return nullptr;
24 scoped_refptr<base::SingleThreadTaskRunner>
25 FakeRendererScheduler::LoadingTaskRunner() {
26 return nullptr;
29 scoped_refptr<scheduler::SingleThreadIdleTaskRunner>
30 FakeRendererScheduler::IdleTaskRunner() {
31 return nullptr;
34 scoped_refptr<scheduler::TaskQueue> FakeRendererScheduler::TimerTaskRunner() {
35 return nullptr;
38 void FakeRendererScheduler::WillBeginFrame(const cc::BeginFrameArgs& args) {
41 void FakeRendererScheduler::BeginFrameNotExpectedSoon() {
44 void FakeRendererScheduler::DidCommitFrameToCompositor() {
47 void FakeRendererScheduler::DidHandleInputEventOnCompositorThread(
48 const blink::WebInputEvent& web_input_event,
49 InputEventState event_state) {
52 void FakeRendererScheduler::DidHandleInputEventOnMainThread(
53 const blink::WebInputEvent& web_input_event) {
56 void FakeRendererScheduler::DidAnimateForInputOnCompositorThread() {
59 bool FakeRendererScheduler::IsHighPriorityWorkAnticipated() {
60 return false;
63 void FakeRendererScheduler::OnRendererHidden() {
66 void FakeRendererScheduler::OnRendererVisible() {
69 void FakeRendererScheduler::OnRendererBackgrounded() {
72 void FakeRendererScheduler::OnRendererForegrounded() {
75 void FakeRendererScheduler::OnPageLoadStarted() {
78 bool FakeRendererScheduler::ShouldYieldForHighPriorityWork() {
79 return false;
82 bool FakeRendererScheduler::CanExceedIdleDeadlineIfRequired() const {
83 return false;
86 void FakeRendererScheduler::AddTaskObserver(
87 base::MessageLoop::TaskObserver* task_observer) {
90 void FakeRendererScheduler::RemoveTaskObserver(
91 base::MessageLoop::TaskObserver* task_observer) {
94 void FakeRendererScheduler::Shutdown() {
97 void FakeRendererScheduler::SuspendTimerQueue() {
100 void FakeRendererScheduler::ResumeTimerQueue() {
103 void FakeRendererScheduler::SetTimerQueueSuspensionWhenBackgroundedEnabled(
104 bool enabled) {}
106 } // namespace content