diff options
author | jar@chromium.org <jar@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-01 18:31:36 +0000 |
---|---|---|
committer | jar@chromium.org <jar@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-01 18:31:36 +0000 |
commit | e085c30ad5cb73ad9497bcf566d93e48127bc48c (patch) | |
tree | e347e0cfaa36e6d688f5a03c3c8217b94b6e7835 /chrome/browser/net/dns_master.h | |
parent | 1f2fe99dc4baa689bf34cef8c85f105d5957db75 (diff) | |
download | chromium_src-e085c30ad5cb73ad9497bcf566d93e48127bc48c.zip chromium_src-e085c30ad5cb73ad9497bcf566d93e48127bc48c.tar.gz chromium_src-e085c30ad5cb73ad9497bcf566d93e48127bc48c.tar.bz2 |
Test impact of 4 rather than 8 parallel DNS prefetch
BUG=6532
r=wtc
Review URL: http://codereview.chromium.org/115990
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@17338 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/net/dns_master.h')
-rw-r--r-- | chrome/browser/net/dns_master.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/chrome/browser/net/dns_master.h b/chrome/browser/net/dns_master.h index dd5343d..5dfb968 100644 --- a/chrome/browser/net/dns_master.h +++ b/chrome/browser/net/dns_master.h @@ -32,11 +32,8 @@ typedef std::map<std::string, DnsHostInfo> Results; class DnsMaster { public: - // Too many concurrent lookups negate benefits of prefetching - // by trashing the OS cache. - static const size_t kMaxConcurrentLookups; - - DnsMaster(); + // Specify how many concurrent (paralell) prefetches will be performed. + DnsMaster(size_t max_concurrent); ~DnsMaster(); // Cancel pending requests and prevent new ones from being made. @@ -169,6 +166,9 @@ class DnsMaster { // and before the HTTP stack tried to look them up. Results cache_eviction_map_; + // The number of concurrent lookups currently allowed. + const size_t max_concurrent_lookups_; + DISALLOW_COPY_AND_ASSIGN(DnsMaster); }; |