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

Side by Side Diff: components/scheduler/base/task_queue_impl.h

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
« no previous file with comments | « components/scheduler/base/task_queue.h ('k') | components/scheduler/base/task_queue_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 CONTENT_RENDERER_SCHEDULER_BASE_TASK_QUEUE_IMPL_H_ 5 #ifndef CONTENT_RENDERER_SCHEDULER_BASE_TASK_QUEUE_IMPL_H_
6 #define CONTENT_RENDERER_SCHEDULER_BASE_TASK_QUEUE_IMPL_H_ 6 #define CONTENT_RENDERER_SCHEDULER_BASE_TASK_QUEUE_IMPL_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <set> 10 #include <set>
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 bool NeedsPumping() const override; 97 bool NeedsPumping() const override;
98 void SetQueuePriority(QueuePriority priority) override; 98 void SetQueuePriority(QueuePriority priority) override;
99 QueuePriority GetQueuePriority() const override; 99 QueuePriority GetQueuePriority() const override;
100 void PumpQueue(bool may_post_dowork) override; 100 void PumpQueue(bool may_post_dowork) override;
101 void SetPumpPolicy(PumpPolicy pump_policy) override; 101 void SetPumpPolicy(PumpPolicy pump_policy) override;
102 PumpPolicy GetPumpPolicy() const override; 102 PumpPolicy GetPumpPolicy() const override;
103 void AddTaskObserver(base::MessageLoop::TaskObserver* task_observer) override; 103 void AddTaskObserver(base::MessageLoop::TaskObserver* task_observer) override;
104 void RemoveTaskObserver( 104 void RemoveTaskObserver(
105 base::MessageLoop::TaskObserver* task_observer) override; 105 base::MessageLoop::TaskObserver* task_observer) override;
106 void SetTimeDomain(TimeDomain* time_domain) override; 106 void SetTimeDomain(TimeDomain* time_domain) override;
107 TimeDomain* GetTimeDomain() const override;
107 108
108 void UpdateImmediateWorkQueue(bool should_trigger_wakeup, 109 void UpdateImmediateWorkQueue(bool should_trigger_wakeup,
109 const Task* previous_task); 110 const Task* previous_task);
110 void UpdateDelayedWorkQueue(LazyNow* lazy_now, 111 void UpdateDelayedWorkQueue(LazyNow* lazy_now,
111 bool should_trigger_wakeup, 112 bool should_trigger_wakeup,
112 const Task* previous_task); 113 const Task* previous_task);
113 114
114 WakeupPolicy wakeup_policy() const { 115 WakeupPolicy wakeup_policy() const {
115 DCHECK(main_thread_checker_.CalledOnValidThread()); 116 DCHECK(main_thread_checker_.CalledOnValidThread());
116 return wakeup_policy_; 117 return wakeup_policy_;
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
296 const bool should_notify_observers_; 297 const bool should_notify_observers_;
297 const bool should_report_when_execution_blocked_; 298 const bool should_report_when_execution_blocked_;
298 299
299 DISALLOW_COPY_AND_ASSIGN(TaskQueueImpl); 300 DISALLOW_COPY_AND_ASSIGN(TaskQueueImpl);
300 }; 301 };
301 302
302 } // namespace internal 303 } // namespace internal
303 } // namespace scheduler 304 } // namespace scheduler
304 305
305 #endif // CONTENT_RENDERER_SCHEDULER_BASE_TASK_QUEUE_IMPL_H_ 306 #endif // CONTENT_RENDERER_SCHEDULER_BASE_TASK_QUEUE_IMPL_H_
OLDNEW
« no previous file with comments | « components/scheduler/base/task_queue.h ('k') | components/scheduler/base/task_queue_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698