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

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

Issue 2053233002: Make sure FrameScheduler is cleared when LocalFrame::detach() finishes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 #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 <memory> 10 #include <memory>
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 TaskQueueManager* task_queue_manager; 198 TaskQueueManager* task_queue_manager;
199 PumpPolicy pump_policy; 199 PumpPolicy pump_policy;
200 TimeDomain* time_domain; 200 TimeDomain* time_domain;
201 201
202 std::unique_ptr<WorkQueue> delayed_work_queue; 202 std::unique_ptr<WorkQueue> delayed_work_queue;
203 std::unique_ptr<WorkQueue> immediate_work_queue; 203 std::unique_ptr<WorkQueue> immediate_work_queue;
204 std::priority_queue<Task> delayed_incoming_queue; 204 std::priority_queue<Task> delayed_incoming_queue;
205 base::ObserverList<base::MessageLoop::TaskObserver> task_observers; 205 base::ObserverList<base::MessageLoop::TaskObserver> task_observers;
206 size_t set_index; 206 size_t set_index;
207 bool is_enabled; 207 bool is_enabled;
208 base::trace_event::BlameContext* blame_context; // Not owned. 208 base::WeakPtr<base::trace_event::BlameContext> blame_context;
209 }; 209 };
210 210
211 ~TaskQueueImpl() override; 211 ~TaskQueueImpl() override;
212 212
213 bool PostImmediateTaskImpl(const tracked_objects::Location& from_here, 213 bool PostImmediateTaskImpl(const tracked_objects::Location& from_here,
214 const base::Closure& task, 214 const base::Closure& task,
215 TaskType task_type); 215 TaskType task_type);
216 bool PostDelayedTaskImpl(const tracked_objects::Location& from_here, 216 bool PostDelayedTaskImpl(const tracked_objects::Location& from_here,
217 const base::Closure& task, 217 const base::Closure& task,
218 base::TimeDelta delay, 218 base::TimeDelta delay,
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
300 const bool should_notify_observers_; 300 const bool should_notify_observers_;
301 const bool should_report_when_execution_blocked_; 301 const bool should_report_when_execution_blocked_;
302 302
303 DISALLOW_COPY_AND_ASSIGN(TaskQueueImpl); 303 DISALLOW_COPY_AND_ASSIGN(TaskQueueImpl);
304 }; 304 };
305 305
306 } // namespace internal 306 } // namespace internal
307 } // namespace scheduler 307 } // namespace scheduler
308 308
309 #endif // CONTENT_RENDERER_SCHEDULER_BASE_TASK_QUEUE_IMPL_H_ 309 #endif // CONTENT_RENDERER_SCHEDULER_BASE_TASK_QUEUE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698