| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef COMPONENTS_SCHEDULER_RENDERER_WEB_VIEW_SCHEDULER_IMPL_H_ | 5 #ifndef COMPONENTS_SCHEDULER_RENDERER_WEB_VIEW_SCHEDULER_IMPL_H_ |
| 6 #define COMPONENTS_SCHEDULER_RENDERER_WEB_VIEW_SCHEDULER_IMPL_H_ | 6 #define COMPONENTS_SCHEDULER_RENDERER_WEB_VIEW_SCHEDULER_IMPL_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 | 53 |
| 54 private: | 54 private: |
| 55 friend class WebFrameSchedulerImpl; | 55 friend class WebFrameSchedulerImpl; |
| 56 | 56 |
| 57 void Unregister(WebFrameSchedulerImpl* frame_scheduler); | 57 void Unregister(WebFrameSchedulerImpl* frame_scheduler); |
| 58 | 58 |
| 59 AutoAdvancingVirtualTimeDomain* virtual_time_domain() const { | 59 AutoAdvancingVirtualTimeDomain* virtual_time_domain() const { |
| 60 return virtual_time_domain_.get(); | 60 return virtual_time_domain_.get(); |
| 61 } | 61 } |
| 62 | 62 |
| 63 TaskQueue::PumpPolicy GetVirtualTimePumpPolicy() const; | |
| 64 | |
| 65 std::set<WebFrameSchedulerImpl*> frame_schedulers_; | 63 std::set<WebFrameSchedulerImpl*> frame_schedulers_; |
| 66 scoped_ptr<AutoAdvancingVirtualTimeDomain> virtual_time_domain_; | 64 scoped_ptr<AutoAdvancingVirtualTimeDomain> virtual_time_domain_; |
| 67 TaskQueue::PumpPolicy virtual_time_pump_policy_; | 65 TaskQueue::PumpPolicy virtual_time_pump_policy_; |
| 68 blink::WebView* web_view_; | 66 blink::WebView* web_view_; |
| 69 RendererSchedulerImpl* renderer_scheduler_; | 67 RendererSchedulerImpl* renderer_scheduler_; |
| 70 bool page_visible_; | 68 bool page_visible_; |
| 71 bool disable_background_timer_throttling_; | 69 bool disable_background_timer_throttling_; |
| 72 bool allow_virtual_time_to_advance_; | 70 bool allow_virtual_time_to_advance_; |
| 73 | 71 |
| 74 DISALLOW_COPY_AND_ASSIGN(WebViewSchedulerImpl); | 72 DISALLOW_COPY_AND_ASSIGN(WebViewSchedulerImpl); |
| 75 }; | 73 }; |
| 76 | 74 |
| 77 } // namespace scheduler | 75 } // namespace scheduler |
| 78 | 76 |
| 79 #endif // COMPONENTS_SCHEDULER_RENDERER_WEB_VIEW_SCHEDULER_IMPL_H_ | 77 #endif // COMPONENTS_SCHEDULER_RENDERER_WEB_VIEW_SCHEDULER_IMPL_H_ |
| OLD | NEW |