Chromium Code Reviews| 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 12:51:58
If we find out that Page isn't the right object to
alex clarke (OOO till 29th)
2015/09/10 14:35:58
Acknowledged.
| |
| 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 void Unregister(WebFrameSchedulerImpl* frame_scheduler); | |
|
Sami
2015/09/10 12:51:58
nit: add a blank line before this.
alex clarke (OOO till 29th)
2015/09/10 14:35:58
Done.
| |
| 33 | |
| 34 private: | |
| 35 std::set<WebFrameSchedulerImpl*> frame_schedulers_; | |
| 36 RendererScheduler* render_scheduler_; | |
| 37 bool background_; | |
| 38 | |
| 39 DISALLOW_COPY_AND_ASSIGN(WebPageSchedulerImpl); | |
| 40 }; | |
| 41 | |
| 42 } // namespace scheduler | |
| 43 | |
| 44 #endif // COMPONENTS_SCHEDULER_RENDERER_WEB_PAGE_SCHEDULER_IMPL_H_ | |
| OLD | NEW |