summaryrefslogtreecommitdiffstats
path: root/net/base/request_priority.h
diff options
context:
space:
mode:
authoreroman@chromium.org <eroman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-01-30 03:45:39 +0000
committereroman@chromium.org <eroman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-01-30 03:45:39 +0000
commit68ad3eeffee6a1e4972b099bffdef17b7d99624d (patch)
treef7f51c2f3eab08b753c09747da4c0643d56efda6 /net/base/request_priority.h
parentb3c9564b04438c11e46807ddb5dec21bb2dd50d7 (diff)
downloadchromium_src-68ad3eeffee6a1e4972b099bffdef17b7d99624d.zip
chromium_src-68ad3eeffee6a1e4972b099bffdef17b7d99624d.tar.gz
chromium_src-68ad3eeffee6a1e4972b099bffdef17b7d99624d.tar.bz2
Add mechanism for global queueing and prioritization of DNS.
Currently this limit is very high (50), but it can be tuned through a variable. BUG=9598 TEST= HostResolverImplTest.HigherPriorityRequestsStartedFirst HostResolverImplTest.CancelPendingRequest HostResolverImplTest.QueueOverflow Review URL: http://codereview.chromium.org/542086 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@37608 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/base/request_priority.h')
-rw-r--r--net/base/request_priority.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/base/request_priority.h b/net/base/request_priority.h
index b618ef2..1347001 100644
--- a/net/base/request_priority.h
+++ b/net/base/request_priority.h
@@ -13,7 +13,8 @@ enum RequestPriority {
HIGHEST = 0, // 0 must be the highest priority.
MEDIUM,
LOW,
- LOWEST
+ LOWEST,
+ NUM_PRIORITIES,
};
} // namespace net