| 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_FRAME_SCHEDULER_IMPL_H_ | 5 #ifndef COMPONENTS_SCHEDULER_RENDERER_WEB_FRAME_SCHEDULER_IMPL_H_ |
| 6 #define COMPONENTS_SCHEDULER_RENDERER_WEB_FRAME_SCHEDULER_IMPL_H_ | 6 #define COMPONENTS_SCHEDULER_RENDERER_WEB_FRAME_SCHEDULER_IMPL_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 ~WebFrameSchedulerImpl() override; | 33 ~WebFrameSchedulerImpl() override; |
| 34 | 34 |
| 35 // blink::WebFrameScheduler implementation: | 35 // blink::WebFrameScheduler implementation: |
| 36 void setFrameVisible(bool frame_visible) override; | 36 void setFrameVisible(bool frame_visible) override; |
| 37 void setPageVisible(bool page_visible) override; | 37 void setPageVisible(bool page_visible) override; |
| 38 blink::WebTaskRunner* loadingTaskRunner() override; | 38 blink::WebTaskRunner* loadingTaskRunner() override; |
| 39 blink::WebTaskRunner* timerTaskRunner() override; | 39 blink::WebTaskRunner* timerTaskRunner() override; |
| 40 void setFrameOrigin(const blink::WebSecurityOrigin& origin) override; | 40 void setFrameOrigin(const blink::WebSecurityOrigin& origin) override; |
| 41 | 41 |
| 42 void OnVirtualTimeDomainChanged(); | 42 void OnVirtualTimeDomainChanged(); |
| 43 void OnVirtualTimePumpPolicyChanged(); | |
| 44 | 43 |
| 45 private: | 44 private: |
| 46 friend class WebViewSchedulerImpl; | 45 friend class WebViewSchedulerImpl; |
| 47 | 46 |
| 48 void DetachFromWebViewScheduler(); | 47 void DetachFromWebViewScheduler(); |
| 49 void ApplyPolicyToTimerQueue(); | 48 void ApplyPolicyToTimerQueue(); |
| 50 | 49 |
| 51 scoped_refptr<TaskQueue> loading_task_queue_; | 50 scoped_refptr<TaskQueue> loading_task_queue_; |
| 52 scoped_refptr<TaskQueue> timer_task_queue_; | 51 scoped_refptr<TaskQueue> timer_task_queue_; |
| 53 scoped_ptr<WebTaskRunnerImpl> loading_web_task_runner_; | 52 scoped_ptr<WebTaskRunnerImpl> loading_web_task_runner_; |
| 54 scoped_ptr<WebTaskRunnerImpl> timer_web_task_runner_; | 53 scoped_ptr<WebTaskRunnerImpl> timer_web_task_runner_; |
| 55 RendererSchedulerImpl* renderer_scheduler_; // NOT OWNED | 54 RendererSchedulerImpl* renderer_scheduler_; // NOT OWNED |
| 56 WebViewSchedulerImpl* parent_web_view_scheduler_; // NOT OWNED | 55 WebViewSchedulerImpl* parent_web_view_scheduler_; // NOT OWNED |
| 57 TaskQueue::PumpPolicy virtual_time_pump_policy_; | 56 TaskQueue::PumpPolicy virtual_time_pump_policy_; |
| 58 blink::WebSecurityOrigin origin_; | 57 blink::WebSecurityOrigin origin_; |
| 59 bool frame_visible_; | 58 bool frame_visible_; |
| 60 bool page_visible_; | 59 bool page_visible_; |
| 61 | 60 |
| 62 DISALLOW_COPY_AND_ASSIGN(WebFrameSchedulerImpl); | 61 DISALLOW_COPY_AND_ASSIGN(WebFrameSchedulerImpl); |
| 63 }; | 62 }; |
| 64 | 63 |
| 65 } // namespace scheduler | 64 } // namespace scheduler |
| 66 | 65 |
| 67 #endif // COMPONENTS_SCHEDULER_RENDERER_WEB_FRAME_SCHEDULER_IMPL_H_ | 66 #endif // COMPONENTS_SCHEDULER_RENDERER_WEB_FRAME_SCHEDULER_IMPL_H_ |
| OLD | NEW |