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_WEB_PAGE_SCHEDULER_IMPL_H_ | |
6 #define COMPONENTS_SCHEDULER_RENDERER_WEB_PAGE_SCHEDULER_IMPL_H_ | |
7 | |
8 #include <set> | |
9 | |
10 #include "base/macros.h" | |
11 #include "components/scheduler/scheduler_export.h" | |
12 #include "third_party/WebKit/public/platform/WebPageScheduler.h" | |
13 | |
14 namespace base { | |
15 class SingleThreadTaskRunner; | |
16 } // namespace base | |
17 | |
18 namespace scheduler { | |
19 | |
20 class RendererScheduler; | |
21 class WebFrameSchedulerImpl; | |
22 | |
23 class SCHEDULER_EXPORT WebPageSchedulerImpl : public blink::WebPageScheduler { | |
Sami
2015/09/10 15:10:23
Is the contract that PageScheduler must outlive al
alex clarke (OOO till 29th)
2015/09/10 15:56:24
That's what I'm assuming.
Or do we need to suppo
| |
24 public: | |
25 explicit WebPageSchedulerImpl(RendererScheduler* render_scheduler); | |
26 | |
27 ~WebPageSchedulerImpl() override; | |
28 | |
29 // blink::WebPageScheduler implementation: | |
30 virtual void setPageInBackground(bool); | |
31 virtual blink::WebFrameScheduler* createFrameScheduler(); | |
32 | |
33 void Unregister(WebFrameSchedulerImpl* frame_scheduler); | |
34 | |
35 private: | |
36 std::set<WebFrameSchedulerImpl*> frame_schedulers_; | |
Sami
2015/09/10 15:10:23
Do we need this set for anything?
alex clarke (OOO till 29th)
2015/09/10 15:56:24
We will do if we want setPageInBackground() to th
| |
37 RendererScheduler* render_scheduler_; | |
38 bool background_; | |
39 | |
40 DISALLOW_COPY_AND_ASSIGN(WebPageSchedulerImpl); | |
41 }; | |
42 | |
43 } // namespace scheduler | |
44 | |
45 #endif // COMPONENTS_SCHEDULER_RENDERER_WEB_PAGE_SCHEDULER_IMPL_H_ | |
OLD | NEW |