diff options
author | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-02 05:59:37 +0000 |
---|---|---|
committer | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-02 05:59:37 +0000 |
commit | 6fad26338ed6119903826156f307e20fe6657c31 (patch) | |
tree | 5c6baed35fce907a0cea47ed6091c941db8ebfd1 /chrome/browser/net/dns_master.h | |
parent | f75c8f13b967b01babc9454506e9d2ed00519e39 (diff) | |
download | chromium_src-6fad26338ed6119903826156f307e20fe6657c31.zip chromium_src-6fad26338ed6119903826156f307e20fe6657c31.tar.gz chromium_src-6fad26338ed6119903826156f307e20fe6657c31.tar.bz2 |
Third patch in getting rid of caching MessageLoop pointers and always using ChromeThread instead.
BUG=25354
Review URL: http://codereview.chromium.org/342068
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30687 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/net/dns_master.h')
-rw-r--r-- | chrome/browser/net/dns_master.h | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/chrome/browser/net/dns_master.h b/chrome/browser/net/dns_master.h index 1bf87d0..451e9ed 100644 --- a/chrome/browser/net/dns_master.h +++ b/chrome/browser/net/dns_master.h @@ -32,8 +32,6 @@ namespace net { class HostResolver; } -class MessageLoop; - namespace chrome_browser_net { typedef chrome_common_net::NameList NameList; @@ -42,9 +40,9 @@ typedef std::map<std::string, DnsHostInfo> Results; class DnsMaster : public base::RefCountedThreadSafe<DnsMaster> { public: // |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, + // be performed. Host lookups will be issued on the IO thread, using the + // |host_resolver| instance. + DnsMaster(net::HostResolver* host_resolver, TimeDelta max_queue_delay_ms, size_t max_concurrent); ~DnsMaster(); @@ -236,9 +234,8 @@ class DnsMaster : public base::RefCountedThreadSafe<DnsMaster> { 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_|. + // thread safe) should be accessed only on the IO thread. scoped_refptr<net::HostResolver> host_resolver_; - MessageLoop* host_resolver_loop_; DISALLOW_COPY_AND_ASSIGN(DnsMaster); }; |