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

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

Issue 2416803003: Record PendingTaskCount when a backgrounded renderer is suspended. (Closed)
Patch Set: Add GetNumberOfPendingTasks to TaskQueueManager Created 4 years, 2 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 | « no previous file | third_party/WebKit/Source/platform/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 THIRD_PARTY_WEBKIT_SOURCE_PLATFORM_SCHEDULER_BASE_TASK_QUEUE_IMPL_H_ 5 #ifndef THIRD_PARTY_WEBKIT_SOURCE_PLATFORM_SCHEDULER_BASE_TASK_QUEUE_IMPL_H_
6 #define THIRD_PARTY_WEBKIT_SOURCE_PLATFORM_SCHEDULER_BASE_TASK_QUEUE_IMPL_H_ 6 #define THIRD_PARTY_WEBKIT_SOURCE_PLATFORM_SCHEDULER_BASE_TASK_QUEUE_IMPL_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 bool RunsTasksOnCurrentThread() const override; 114 bool RunsTasksOnCurrentThread() const override;
115 bool PostDelayedTask(const tracked_objects::Location& from_here, 115 bool PostDelayedTask(const tracked_objects::Location& from_here,
116 const base::Closure& task, 116 const base::Closure& task,
117 base::TimeDelta delay) override; 117 base::TimeDelta delay) override;
118 bool PostNonNestableDelayedTask(const tracked_objects::Location& from_here, 118 bool PostNonNestableDelayedTask(const tracked_objects::Location& from_here,
119 const base::Closure& task, 119 const base::Closure& task,
120 base::TimeDelta delay) override; 120 base::TimeDelta delay) override;
121 void SetQueueEnabled(bool enabled) override; 121 void SetQueueEnabled(bool enabled) override;
122 bool IsQueueEnabled() const override; 122 bool IsQueueEnabled() const override;
123 bool IsEmpty() const override; 123 bool IsEmpty() const override;
124 size_t GetNumberOfPendingTasks() const override;
124 bool HasPendingImmediateWork() const override; 125 bool HasPendingImmediateWork() const override;
125 base::Optional<base::TimeTicks> GetNextScheduledWakeUp() override; 126 base::Optional<base::TimeTicks> GetNextScheduledWakeUp() override;
126 void SetQueuePriority(QueuePriority priority) override; 127 void SetQueuePriority(QueuePriority priority) override;
127 QueuePriority GetQueuePriority() const override; 128 QueuePriority GetQueuePriority() const override;
128 void AddTaskObserver(base::MessageLoop::TaskObserver* task_observer) override; 129 void AddTaskObserver(base::MessageLoop::TaskObserver* task_observer) override;
129 void RemoveTaskObserver( 130 void RemoveTaskObserver(
130 base::MessageLoop::TaskObserver* task_observer) override; 131 base::MessageLoop::TaskObserver* task_observer) override;
131 void SetTimeDomain(TimeDomain* time_domain) override; 132 void SetTimeDomain(TimeDomain* time_domain) override;
132 TimeDomain* GetTimeDomain() const override; 133 TimeDomain* GetTimeDomain() const override;
133 void SetBlameContext(base::trace_event::BlameContext* blame_context) override; 134 void SetBlameContext(base::trace_event::BlameContext* blame_context) override;
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 } // namespace blink 305 } // namespace blink
305 306
306 #endif // THIRD_PARTY_WEBKIT_SOURCE_PLATFORM_SCHEDULER_BASE_TASK_QUEUE_IMPL_H_ 307 #endif // THIRD_PARTY_WEBKIT_SOURCE_PLATFORM_SCHEDULER_BASE_TASK_QUEUE_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/platform/scheduler/base/task_queue_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698