blob: acab0829b30835a37029a53dbda2c84009b462a5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef COMPONENTS_SCHEDULER_RENDERER_RENDERER_WEB_SCHEDULER_IMPL_H_
#define COMPONENTS_SCHEDULER_RENDERER_RENDERER_WEB_SCHEDULER_IMPL_H_
#include "components/scheduler/child/web_scheduler_impl.h"
namespace scheduler {
class RendererSchedulerImpl;
class SCHEDULER_EXPORT RendererWebSchedulerImpl : public WebSchedulerImpl {
public:
explicit RendererWebSchedulerImpl(RendererSchedulerImpl* renderer_scheduler);
~RendererWebSchedulerImpl() override;
// blink::WebScheduler implementation:
void suspendTimerQueue() override;
void resumeTimerQueue() override;
blink::WebPassOwnPtr<blink::WebViewScheduler> createWebViewScheduler(
blink::WebView* web_view) override;
void addPendingNavigation() override;
void removePendingNavigation() override;
void onNavigationStarted() override;
private:
RendererSchedulerImpl* renderer_scheduler_; // NOT OWNED
};
} // namespace scheduler
#endif // COMPONENTS_SCHEDULER_RENDERER_RENDERER_WEB_SCHEDULER_IMPL_H_
|