OLD | NEW |
| (Empty) |
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. | |
4 | |
5 #ifndef COMPONENTS_SCHEDULER_RENDERER_RENDERER_WEB_SCHEDULER_IMPL_H_ | |
6 #define COMPONENTS_SCHEDULER_RENDERER_RENDERER_WEB_SCHEDULER_IMPL_H_ | |
7 | |
8 #include "components/scheduler/child/web_scheduler_impl.h" | |
9 | |
10 namespace scheduler { | |
11 | |
12 class RendererSchedulerImpl; | |
13 | |
14 class SCHEDULER_EXPORT RendererWebSchedulerImpl : public WebSchedulerImpl { | |
15 public: | |
16 explicit RendererWebSchedulerImpl(RendererSchedulerImpl* renderer_scheduler); | |
17 | |
18 ~RendererWebSchedulerImpl() override; | |
19 | |
20 // blink::WebScheduler implementation: | |
21 void suspendTimerQueue() override; | |
22 void resumeTimerQueue() override; | |
23 std::unique_ptr<blink::WebViewScheduler> createWebViewScheduler( | |
24 blink::WebView* web_view) override; | |
25 void onNavigationStarted() override; | |
26 | |
27 private: | |
28 RendererSchedulerImpl* renderer_scheduler_; // NOT OWNED | |
29 }; | |
30 | |
31 } // namespace scheduler | |
32 | |
33 #endif // COMPONENTS_SCHEDULER_RENDERER_RENDERER_WEB_SCHEDULER_IMPL_H_ | |
OLD | NEW |