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

Side by Side Diff: components/scheduler/child/scheduler_helper.cc

Issue 1652083002: Prepare for per-webview virtual time (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased 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 #include "components/scheduler/child/scheduler_helper.h" 5 #include "components/scheduler/child/scheduler_helper.h"
6 6
7 #include "base/time/default_tick_clock.h" 7 #include "base/time/default_tick_clock.h"
8 #include "base/trace_event/trace_event.h" 8 #include "base/trace_event/trace_event.h"
9 #include "base/trace_event/trace_event_argument.h" 9 #include "base/trace_event/trace_event_argument.h"
10 #include "components/scheduler/base/task_queue_impl.h" 10 #include "components/scheduler/base/task_queue_impl.h"
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 observer_->OnUnregisterTaskQueue(queue); 148 observer_->OnUnregisterTaskQueue(queue);
149 } 149 }
150 150
151 void SchedulerHelper::OnTriedToExecuteBlockedTask( 151 void SchedulerHelper::OnTriedToExecuteBlockedTask(
152 const TaskQueue& queue, 152 const TaskQueue& queue,
153 const base::PendingTask& task) { 153 const base::PendingTask& task) {
154 if (observer_) 154 if (observer_)
155 observer_->OnTriedToExecuteBlockedTask(queue, task); 155 observer_->OnTriedToExecuteBlockedTask(queue, task);
156 } 156 }
157 157
158 TaskQueue* SchedulerHelper::CurrentlyExecutingTaskQueue() const {
159 if (!task_queue_manager_)
160 return nullptr;
161 return task_queue_manager_->currently_executing_task_queue();
162 }
163
158 } // namespace scheduler 164 } // namespace scheduler
OLDNEW
« no previous file with comments | « components/scheduler/child/scheduler_helper.h ('k') | components/scheduler/child/scheduler_tqm_delegate_for_test.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698