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

Unified Diff: third_party/WebKit/Source/platform/scheduler/renderer/web_view_scheduler_impl.h

Issue 2741473002: [scheduler] Move TimeBudgetPool to a separate file. (Closed)
Patch Set: Addressed comments from alexclarke@ Created 3 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/platform/scheduler/renderer/web_view_scheduler_impl.h
diff --git a/third_party/WebKit/Source/platform/scheduler/renderer/web_view_scheduler_impl.h b/third_party/WebKit/Source/platform/scheduler/renderer/web_view_scheduler_impl.h
index d762a11c8ac8d3dc95be6d66603bad0d8c4dae5e..4f6086173a698b449f25db81e429d3520d81e068 100644
--- a/third_party/WebKit/Source/platform/scheduler/renderer/web_view_scheduler_impl.h
+++ b/third_party/WebKit/Source/platform/scheduler/renderer/web_view_scheduler_impl.h
@@ -27,6 +27,7 @@ namespace blink {
namespace scheduler {
class RendererSchedulerImpl;
+class CPUTimeBudgetPool;
class WebFrameSchedulerImpl;
class BLINK_PLATFORM_EXPORT WebViewSchedulerImpl : public WebViewScheduler {
@@ -71,8 +72,8 @@ class BLINK_PLATFORM_EXPORT WebViewSchedulerImpl : public WebViewScheduler {
private:
friend class WebFrameSchedulerImpl;
- TaskQueueThrottler::TimeBudgetPool* BackgroundTimeBudgetPool();
- void MaybeInitializeBackgroundTimeBudgetPool();
+ CPUTimeBudgetPool* BackgroundCPUTimeBudgetPool();
+ void MaybeInitializeBackgroundCPUTimeBudgetPool();
void setAllowVirtualTimeToAdvance(bool allow_virtual_time_to_advance);
void ApplyVirtualTimePolicy();
@@ -108,8 +109,7 @@ class BLINK_PLATFORM_EXPORT WebViewSchedulerImpl : public WebViewScheduler {
bool is_audio_playing_;
bool reported_background_throttling_since_navigation_;
bool has_active_connection_;
- TaskQueueThrottler::TimeBudgetPool*
- background_time_budget_pool_; // Not owned.
+ CPUTimeBudgetPool* background_time_budget_pool_; // Not owned.
CancelableClosureHolder delayed_background_throttling_enabler_;
WebViewScheduler::WebViewSchedulerSettings* settings_; // Not owned.

Powered by Google App Engine
This is Rietveld 408576698