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 <memory> | 8 #include <memory> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 28 matching lines...) Expand all Loading... |
39 | 39 |
40 // blink::WebFrameScheduler implementation: | 40 // blink::WebFrameScheduler implementation: |
41 void setFrameVisible(bool frame_visible) override; | 41 void setFrameVisible(bool frame_visible) override; |
42 void setPageVisible(bool page_visible) override; | 42 void setPageVisible(bool page_visible) override; |
43 blink::WebTaskRunner* loadingTaskRunner() override; | 43 blink::WebTaskRunner* loadingTaskRunner() override; |
44 blink::WebTaskRunner* timerTaskRunner() override; | 44 blink::WebTaskRunner* timerTaskRunner() override; |
45 blink::WebTaskRunner* unthrottledTaskRunner() override; | 45 blink::WebTaskRunner* unthrottledTaskRunner() override; |
46 blink::WebViewScheduler* webViewScheduler() override; | 46 blink::WebViewScheduler* webViewScheduler() override; |
47 void didStartLoading(unsigned long identifier) override; | 47 void didStartLoading(unsigned long identifier) override; |
48 void didStopLoading(unsigned long identifier) override; | 48 void didStopLoading(unsigned long identifier) override; |
| 49 void setDocumentParsingInBackground(bool background_parser_active) override; |
49 | 50 |
50 void OnVirtualTimeDomainChanged(); | 51 void OnVirtualTimeDomainChanged(); |
51 | 52 |
52 private: | 53 private: |
53 friend class WebViewSchedulerImpl; | 54 friend class WebViewSchedulerImpl; |
54 | 55 |
55 void DetachFromWebViewScheduler(); | 56 void DetachFromWebViewScheduler(); |
56 void ApplyPolicyToTimerQueue(); | 57 void ApplyPolicyToTimerQueue(); |
57 | 58 |
58 scoped_refptr<TaskQueue> loading_task_queue_; | 59 scoped_refptr<TaskQueue> loading_task_queue_; |
59 scoped_refptr<TaskQueue> timer_task_queue_; | 60 scoped_refptr<TaskQueue> timer_task_queue_; |
60 scoped_refptr<TaskQueue> unthrottled_task_queue_; | 61 scoped_refptr<TaskQueue> unthrottled_task_queue_; |
61 std::unique_ptr<WebTaskRunnerImpl> loading_web_task_runner_; | 62 std::unique_ptr<WebTaskRunnerImpl> loading_web_task_runner_; |
62 std::unique_ptr<WebTaskRunnerImpl> timer_web_task_runner_; | 63 std::unique_ptr<WebTaskRunnerImpl> timer_web_task_runner_; |
63 std::unique_ptr<WebTaskRunnerImpl> unthrottled_web_task_runner_; | 64 std::unique_ptr<WebTaskRunnerImpl> unthrottled_web_task_runner_; |
64 RendererSchedulerImpl* renderer_scheduler_; // NOT OWNED | 65 RendererSchedulerImpl* renderer_scheduler_; // NOT OWNED |
65 WebViewSchedulerImpl* parent_web_view_scheduler_; // NOT OWNED | 66 WebViewSchedulerImpl* parent_web_view_scheduler_; // NOT OWNED |
66 base::trace_event::BlameContext* blame_context_; // NOT OWNED | 67 base::trace_event::BlameContext* blame_context_; // NOT OWNED |
67 TaskQueue::PumpPolicy virtual_time_pump_policy_; | 68 TaskQueue::PumpPolicy virtual_time_pump_policy_; |
68 bool frame_visible_; | 69 bool frame_visible_; |
69 bool page_visible_; | 70 bool page_visible_; |
70 | 71 |
71 DISALLOW_COPY_AND_ASSIGN(WebFrameSchedulerImpl); | 72 DISALLOW_COPY_AND_ASSIGN(WebFrameSchedulerImpl); |
72 }; | 73 }; |
73 | 74 |
74 } // namespace scheduler | 75 } // namespace scheduler |
75 | 76 |
76 #endif // COMPONENTS_SCHEDULER_RENDERER_WEB_FRAME_SCHEDULER_IMPL_H_ | 77 #endif // COMPONENTS_SCHEDULER_RENDERER_WEB_FRAME_SCHEDULER_IMPL_H_ |
OLD | NEW |