Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(10)

Side by Side Diff: components/scheduler/renderer/web_view_scheduler_impl.h

Issue 1697523002: Allow immediate tasks to run even when virtual time can't advance (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « components/scheduler/renderer/web_frame_scheduler_impl.cc ('k') | components/scheduler/renderer/web_view_scheduler_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698