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

Unified Diff: chrome/browser/net/dns_master.h

Issue 147215: Refactor DNS A/B experient, and add test of congestion time limits... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 6 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 | « chrome/browser/net/dns_global.cc ('k') | chrome/browser/net/dns_master.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/net/dns_master.h
===================================================================
--- chrome/browser/net/dns_master.h (revision 19463)
+++ chrome/browser/net/dns_master.h (working copy)
@@ -26,6 +26,8 @@
#include "chrome/common/net/dns.h"
#include "testing/gtest/include/gtest/gtest_prod.h"
+using base::TimeDelta;
+
namespace net {
class HostResolver;
}
@@ -42,9 +44,8 @@
// |max_concurrent| specifies how many concurrent (paralell) prefetches will
// be performed. Host lookups will be issued on the |host_resolver_loop|
// thread, using the |host_resolver| instance.
- DnsMaster(net::HostResolver* host_resolver,
- MessageLoop* host_resolver_loop,
- size_t max_concurrent);
+ DnsMaster(net::HostResolver* host_resolver, MessageLoop* host_resolver_loop,
+ TimeDelta max_queue_delay_ms, size_t max_concurrent);
~DnsMaster();
// Cancel pending requests and prevent new ones from being made.
@@ -227,6 +228,10 @@
// The number of concurrent lookups currently allowed.
const size_t max_concurrent_lookups_;
+ // The maximum queueing delay that is acceptable before we enter congestion
+ // reduction mode, and discard all queued (but not yet assigned) resolutions.
+ const TimeDelta max_queue_delay_;
+
// The host resovler we warm DNS entries for. The resolver (which is not
// thread safe) should be accessed only on |host_resolver_loop_|.
scoped_refptr<net::HostResolver> host_resolver_;
« no previous file with comments | « chrome/browser/net/dns_global.cc ('k') | chrome/browser/net/dns_master.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698