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

Unified Diff: content/child/scheduler/prioritizing_task_queue_selector.h

Issue 1025323003: Introduce a SchedulerHelper in content/child/scheduler (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Ross's suggestions Created 5 years, 9 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/child/scheduler/prioritizing_task_queue_selector.h
diff --git a/content/renderer/scheduler/renderer_task_queue_selector.h b/content/child/scheduler/prioritizing_task_queue_selector.h
similarity index 85%
rename from content/renderer/scheduler/renderer_task_queue_selector.h
rename to content/child/scheduler/prioritizing_task_queue_selector.h
index 72bbc62874047085e99102f29da4c73b47bad2e0..a44c44cf80237eda94b1d80892a73bbabf73e095 100644
--- a/content/renderer/scheduler/renderer_task_queue_selector.h
+++ b/content/child/scheduler/prioritizing_task_queue_selector.h
@@ -2,21 +2,21 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CONTENT_RENDERER_SCHEDULER_RENDERER_TASK_QUEUE_SELECTOR_H_
-#define CONTENT_RENDERER_SCHEDULER_RENDERER_TASK_QUEUE_SELECTOR_H_
+#ifndef CONTENT_CHILD_SCHEDULER_PRIORITIZING_TASK_QUEUE_SELECTOR_H_
+#define CONTENT_CHILD_SCHEDULER_PRIORITIZING_TASK_QUEUE_SELECTOR_H_
#include <set>
#include "base/compiler_specific.h"
#include "base/threading/thread_checker.h"
+#include "content/child/scheduler/task_queue_selector.h"
#include "content/common/content_export.h"
-#include "content/renderer/scheduler/task_queue_selector.h"
namespace content {
-// A RendererTaskQueueSelector is a TaskQueueSelector which is used by the
-// RendererScheduler to enable prioritization of particular task queues.
-class CONTENT_EXPORT RendererTaskQueueSelector
+// A PrioritizingTaskQueueSelector is a TaskQueueSelector which is used by the
+// SchedulerHelper to enable prioritization of particular task queues.
+class CONTENT_EXPORT PrioritizingTaskQueueSelector
: NON_EXPORTED_BASE(public TaskQueueSelector) {
public:
enum QueuePriority {
@@ -38,8 +38,8 @@ class CONTENT_EXPORT RendererTaskQueueSelector
FIRST_QUEUE_PRIORITY = CONTROL_PRIORITY,
};
- RendererTaskQueueSelector();
- ~RendererTaskQueueSelector() override;
+ PrioritizingTaskQueueSelector();
+ ~PrioritizingTaskQueueSelector() override;
// Set the priority of |queue_index| to |priority|.
void SetQueuePriority(size_t queue_index, QueuePriority priority);
@@ -93,9 +93,9 @@ class CONTENT_EXPORT RendererTaskQueueSelector
std::vector<const base::TaskQueue*> work_queues_;
std::set<size_t> queue_priorities_[QUEUE_PRIORITY_COUNT];
size_t starvation_count_;
- DISALLOW_COPY_AND_ASSIGN(RendererTaskQueueSelector);
+ DISALLOW_COPY_AND_ASSIGN(PrioritizingTaskQueueSelector);
};
} // namespace content
-#endif // CONTENT_RENDERER_SCHEDULER_RENDERER_TASK_QUEUE_SELECTOR_H_
+#endif // CONTENT_CHILD_SCHEDULER_PRIORITIZING_TASK_QUEUE_SELECTOR_H_

Powered by Google App Engine
This is Rietveld 408576698