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

Unified Diff: net/base/prioritized_dispatcher.h

Issue 10185007: [net] Change order of RequestPriority to natural: higher > lower (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Removed left-over comment Created 8 years, 8 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
« no previous file with comments | « net/base/host_resolver_impl.cc ('k') | net/base/prioritized_dispatcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/prioritized_dispatcher.h
diff --git a/net/base/prioritized_dispatcher.h b/net/base/prioritized_dispatcher.h
index c10061bbc02cbcb3dd5ef3e37bd7c2b989a3e1c4..7e59d4e67e1bf505ffe460b044ecc64ec942e060 100644
--- a/net/base/prioritized_dispatcher.h
+++ b/net/base/prioritized_dispatcher.h
@@ -13,7 +13,7 @@
namespace net {
-// A priority-based dispatcher of jobs. Dispatch order is by priority (lowest
+// A priority-based dispatcher of jobs. Dispatch order is by priority (highest
// first) and then FIFO. The dispatcher enforces limits on the number of running
// jobs. It never revokes a job once started. The job must call OnJobFinished
// once it finishes in order to dispatch further jobs.
@@ -32,7 +32,7 @@ class NET_EXPORT_PRIVATE PrioritizedDispatcher {
// For example, |total_jobs| = 30 and |reserved_slots| = { 5, 10, 5 }
// allow for at most 30 running jobs in total. If there are already 24 jobs
// running, then there can be 6 more jobs started of which at most 1 can be
- // at priority 1 or 0, but the rest has to be at 0.
+ // at priority 1 or 2, but the rest have to be at 2.
struct NET_EXPORT_PRIVATE Limits {
Limits(Priority num_priorities, size_t total_jobs);
~Limits();
« no previous file with comments | « net/base/host_resolver_impl.cc ('k') | net/base/prioritized_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698