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

Side by Side Diff: third_party/WebKit/Source/platform/scheduler/base/time_domain.h

Issue 2466383004: blink: Cleanup class forward declarations (Closed)
Patch Set: Created 4 years, 1 month 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 THIRD_PARTY_WEBKIT_SOURCE_PLATFORM_SCHEDULER_BASE_TIME_DOMAIN_H_ 5 #ifndef THIRD_PARTY_WEBKIT_SOURCE_PLATFORM_SCHEDULER_BASE_TIME_DOMAIN_H_
6 #define THIRD_PARTY_WEBKIT_SOURCE_PLATFORM_SCHEDULER_BASE_TIME_DOMAIN_H_ 6 #define THIRD_PARTY_WEBKIT_SOURCE_PLATFORM_SCHEDULER_BASE_TIME_DOMAIN_H_
7 7
8 #include <map> 8 #include <map>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
11 #include "base/logging.h" 11 #include "base/logging.h"
12 #include "base/macros.h" 12 #include "base/macros.h"
13 #include "base/memory/ref_counted.h" 13 #include "base/memory/ref_counted.h"
14 #include "base/memory/weak_ptr.h" 14 #include "base/memory/weak_ptr.h"
15 #include "base/time/time.h" 15 #include "base/time/time.h"
16 #include "platform/scheduler/base/intrusive_heap.h" 16 #include "platform/scheduler/base/intrusive_heap.h"
17 #include "platform/scheduler/base/lazy_now.h" 17 #include "platform/scheduler/base/lazy_now.h"
18 #include "platform/scheduler/base/task_queue_impl.h" 18 #include "platform/scheduler/base/task_queue_impl.h"
19 19
20 namespace blink { 20 namespace blink {
21 namespace scheduler { 21 namespace scheduler {
22 namespace internal { 22 namespace internal {
23 class TaskQueueImpl; 23 class TaskQueueImpl;
24 } // internal 24 } // internal
25 class TaskQueueManager; 25 class TaskQueueManager;
26 class TaskQueueManagerDelegate;
27 26
28 // The TimeDomain's job is to wake task queues up when their next delayed tasks 27 // The TimeDomain's job is to wake task queues up when their next delayed tasks
29 // are due to fire. TaskQueues request a wake up via ScheduleDelayedWork, when 28 // are due to fire. TaskQueues request a wake up via ScheduleDelayedWork, when
30 // the wake up is due the TimeDomain calls TaskQueue::WakeUpForDelayedWork. 29 // the wake up is due the TimeDomain calls TaskQueue::WakeUpForDelayedWork.
31 // The TimeDomain communicates with the TaskQueueManager to actually schedule 30 // The TimeDomain communicates with the TaskQueueManager to actually schedule
32 // the wake-ups on the underlying base::MessageLoop. Various levels of de-duping 31 // the wake-ups on the underlying base::MessageLoop. Various levels of de-duping
33 // are employed to prevent unnecessary posting of TaskQueueManager::DoWork. 32 // are employed to prevent unnecessary posting of TaskQueueManager::DoWork.
34 // 33 //
35 // Note the TimeDomain only knows about the first wakeup per queue, it's the 34 // Note the TimeDomain only knows about the first wakeup per queue, it's the
36 // responsibility of TaskQueueImpl to keep the time domain up to date if this 35 // responsibility of TaskQueueImpl to keep the time domain up to date if this
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 177
179 base::ThreadChecker main_thread_checker_; 178 base::ThreadChecker main_thread_checker_;
180 179
181 DISALLOW_COPY_AND_ASSIGN(TimeDomain); 180 DISALLOW_COPY_AND_ASSIGN(TimeDomain);
182 }; 181 };
183 182
184 } // namespace scheduler 183 } // namespace scheduler
185 } // namespace blink 184 } // namespace blink
186 185
187 #endif // THIRD_PARTY_WEBKIT_SOURCE_PLATFORM_SCHEDULER_BASE_TIME_DOMAIN_H_ 186 #endif // THIRD_PARTY_WEBKIT_SOURCE_PLATFORM_SCHEDULER_BASE_TIME_DOMAIN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698