Roll src/third_party/WebKit 9f7fb92:f103b33 (svn 202621:202622)
[chromium-blink-merge.git] / components / scheduler / renderer / renderer_web_scheduler_impl.h
blob1001ddae68ecf2d515298bca71890b059ed59285
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 #ifndef COMPONENTS_SCHEDULER_RENDERER_RENDERER_WEB_SCHEDULER_IMPL_H_
6 #define COMPONENTS_SCHEDULER_RENDERER_RENDERER_WEB_SCHEDULER_IMPL_H_
8 #include "components/scheduler/child/web_scheduler_impl.h"
10 namespace scheduler {
12 class RendererScheduler;
14 class SCHEDULER_EXPORT RendererWebSchedulerImpl : public WebSchedulerImpl {
15 public:
16 explicit RendererWebSchedulerImpl(RendererScheduler* child_scheduler);
18 ~RendererWebSchedulerImpl() override;
20 // blink::WebScheduler implementation:
21 virtual void suspendTimerQueue();
22 virtual void resumeTimerQueue();
24 private:
25 RendererScheduler* renderer_scheduler_; // NOT OWNED
28 } // namespace scheduler
30 #endif // COMPONENTS_SCHEDULER_RENDERER_RENDERER_WEB_SCHEDULER_IMPL_H_