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

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

Issue 1441073006: Move throttling of background timers into the renderer scheduler (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 5 years 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_MANAGER_H_ 5 #ifndef CONTENT_RENDERER_SCHEDULER_BASE_TASK_QUEUE_MANAGER_H_
6 #define CONTENT_RENDERER_SCHEDULER_BASE_TASK_QUEUE_MANAGER_H_ 6 #define CONTENT_RENDERER_SCHEDULER_BASE_TASK_QUEUE_MANAGER_H_
7 7
8 #include <map> 8 #include <map>
9 9
10 #include "base/atomic_sequence_num.h" 10 #include "base/atomic_sequence_num.h"
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 int work_batch_size_; 205 int work_batch_size_;
206 206
207 base::ObserverList<base::MessageLoop::TaskObserver> task_observers_; 207 base::ObserverList<base::MessageLoop::TaskObserver> task_observers_;
208 208
209 const char* tracing_category_; 209 const char* tracing_category_;
210 const char* disabled_by_default_tracing_category_; 210 const char* disabled_by_default_tracing_category_;
211 const char* disabled_by_default_verbose_tracing_category_; 211 const char* disabled_by_default_verbose_tracing_category_;
212 212
213 Observer* observer_; // NOT OWNED 213 Observer* observer_; // NOT OWNED
214 scoped_refptr<DeletionSentinel> deletion_sentinel_; 214 scoped_refptr<DeletionSentinel> deletion_sentinel_;
215 scoped_refptr<TimeDomain> time_domain_;
216 base::WeakPtrFactory<TaskQueueManager> weak_factory_; 215 base::WeakPtrFactory<TaskQueueManager> weak_factory_;
217 216
218 DISALLOW_COPY_AND_ASSIGN(TaskQueueManager); 217 DISALLOW_COPY_AND_ASSIGN(TaskQueueManager);
219 }; 218 };
220 219
221 } // namespace scheduler 220 } // namespace scheduler
222 221
223 #endif // CONTENT_RENDERER_SCHEDULER_BASE_TASK_QUEUE_MANAGER_H_ 222 #endif // CONTENT_RENDERER_SCHEDULER_BASE_TASK_QUEUE_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698