Revert "Reland c91b178b07b0d - Delete dead signin code (SigninGlobalError)"
[chromium-blink-merge.git] / components / scheduler / renderer / renderer_web_scheduler_impl.cc
blobc833b7005c8ca51922b47dd7c697811637f97051
1 // Copyright 2015 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 "components/scheduler/renderer/renderer_web_scheduler_impl.h"
7 #include "components/scheduler/child/task_queue.h"
8 #include "components/scheduler/renderer/renderer_scheduler.h"
10 namespace scheduler {
12 RendererWebSchedulerImpl::RendererWebSchedulerImpl(
13 RendererScheduler* renderer_scheduler)
14 : WebSchedulerImpl(renderer_scheduler,
15 renderer_scheduler->IdleTaskRunner(),
16 renderer_scheduler->LoadingTaskRunner(),
17 renderer_scheduler->TimerTaskRunner()),
18 renderer_scheduler_(renderer_scheduler) {
21 RendererWebSchedulerImpl::~RendererWebSchedulerImpl() {
24 void RendererWebSchedulerImpl::suspendTimerQueue() {
25 renderer_scheduler_->SuspendTimerQueue();
28 void RendererWebSchedulerImpl::resumeTimerQueue() {
29 renderer_scheduler_->ResumeTimerQueue();
32 } // namespace scheduler