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

Unified Diff: content/renderer/scheduler/task_queue_manager.h

Issue 962633002: scheduler: Convert enums to enum classes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Did the rest too. Created 5 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 side-by-side diff with in-line comments
Download patch
Index: content/renderer/scheduler/task_queue_manager.h
diff --git a/content/renderer/scheduler/task_queue_manager.h b/content/renderer/scheduler/task_queue_manager.h
index 9e475ffe13801d67f50d41a6ce5ee3fab9418951..79df04d91eba9c6edd99c153443a516d6a324a09 100644
--- a/content/renderer/scheduler/task_queue_manager.h
+++ b/content/renderer/scheduler/task_queue_manager.h
@@ -48,20 +48,20 @@ class TaskQueueSelector;
class CONTENT_EXPORT TaskQueueManager {
public:
// Keep TaskQueue::PumpPolicyToString in sync with this enum.
- enum PumpPolicy {
- // Tasks posted to an incoming queue with an AUTO_PUMP_POLICY will be
+ enum class PumpPolicy {
+ // Tasks posted to an incoming queue with an AUTO pump policy will be
// automatically scheduled for execution or transferred to the work queue
// automatically.
- AUTO_PUMP_POLICY,
- // Tasks posted to an incoming queue with an AUTO_PUMP_AFTER_WAKEUP_POLICY
+ AUTO,
+ // Tasks posted to an incoming queue with an AFTER_WAKEUP pump policy
// will be scheduled for execution or transferred to the work queue
// automatically but only after another queue has executed a task.
- AUTO_PUMP_AFTER_WAKEUP_POLICY,
- // Tasks posted to an incoming queue with a MANUAL_PUMP_POLICY will not be
+ AFTER_WAKEUP,
+ // Tasks posted to an incoming queue with a MANUAL will not be
// automatically scheduled for execution or transferred to the work queue.
// Instead, the selector should call PumpQueue() when necessary to bring
// in new tasks for execution.
- MANUAL_PUMP_POLICY
+ MANUAL
};
// Create a task queue manager with |task_queue_count| task queues.
@@ -116,10 +116,7 @@ class CONTENT_EXPORT TaskQueueManager {
private:
friend class internal::TaskQueue;
- enum WorkQueueUpdateEventType {
- BEFORE_WAKEUP_EVENT_TYPE,
- AFTER_WAKEUP_EVENT_TYPE
- };
+ enum class WorkQueueUpdateEventType { BEFORE_WAKEUP, AFTER_WAKEUP };
// Called by the task queue to register a new pending task and allocate a
// sequence number for it.
« no previous file with comments | « content/renderer/scheduler/renderer_scheduler_impl.cc ('k') | content/renderer/scheduler/task_queue_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698