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

Side by Side Diff: components/scheduler/renderer/web_frame_scheduler_impl.cc

Issue 2184123002: Change VirtualTimePolicy::PAUSE_IF_NETWORK_FETCHES_PENDING (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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 #include "components/scheduler/renderer/web_frame_scheduler_impl.h" 5 #include "components/scheduler/renderer/web_frame_scheduler_impl.h"
6 6
7 #include "base/trace_event/blame_context.h" 7 #include "base/trace_event/blame_context.h"
8 #include "components/scheduler/base/real_time_domain.h" 8 #include "components/scheduler/base/real_time_domain.h"
9 #include "components/scheduler/base/virtual_time_domain.h" 9 #include "components/scheduler/base/virtual_time_domain.h"
10 #include "components/scheduler/child/web_task_runner_impl.h" 10 #include "components/scheduler/child/web_task_runner_impl.h"
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 renderer_scheduler_->throttling_helper()->UnregisterTaskQueue( 147 renderer_scheduler_->throttling_helper()->UnregisterTaskQueue(
148 timer_task_queue_.get()); 148 timer_task_queue_.get());
149 timer_task_queue_->SetTimeDomain( 149 timer_task_queue_->SetTimeDomain(
150 parent_web_view_scheduler_->virtual_time_domain()); 150 parent_web_view_scheduler_->virtual_time_domain());
151 } 151 }
152 152
153 if (loading_task_queue_) { 153 if (loading_task_queue_) {
154 loading_task_queue_->SetTimeDomain( 154 loading_task_queue_->SetTimeDomain(
155 parent_web_view_scheduler_->virtual_time_domain()); 155 parent_web_view_scheduler_->virtual_time_domain());
156 } 156 }
157
158 if (unthrottled_task_queue_) {
159 unthrottled_task_queue_->SetTimeDomain(
160 parent_web_view_scheduler_->virtual_time_domain());
161 }
157 } 162 }
158 163
159 } // namespace scheduler 164 } // namespace scheduler
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698