[Media Router] Add integration tests and e2e tests for media router and presentation...
[chromium-blink-merge.git] / components / scheduler / renderer / renderer_web_scheduler_impl.cc
blobb54bf9a48dcd9d15f187cde5361922ea07b8a411
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/renderer/renderer_scheduler.h"
9 namespace scheduler {
11 RendererWebSchedulerImpl::RendererWebSchedulerImpl(
12 RendererScheduler* renderer_scheduler)
13 : WebSchedulerImpl(renderer_scheduler,
14 renderer_scheduler->IdleTaskRunner(),
15 renderer_scheduler->LoadingTaskRunner(),
16 renderer_scheduler->TimerTaskRunner()),
17 renderer_scheduler_(renderer_scheduler) {
20 RendererWebSchedulerImpl::~RendererWebSchedulerImpl() {
23 void RendererWebSchedulerImpl::suspendTimerQueue() {
24 renderer_scheduler_->SuspendTimerQueue();
27 void RendererWebSchedulerImpl::resumeTimerQueue() {
28 renderer_scheduler_->ResumeTimerQueue();
31 } // namespace scheduler