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

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

Issue 342068: Third patch in getting rid of caching MessageLoop pointers and always using C... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 2 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 30650)
+++ chrome/browser/net/dns_master.h (working copy)
@@ -32,8 +32,6 @@
class HostResolver;
}
-class MessageLoop;
-
namespace chrome_browser_net {
typedef chrome_common_net::NameList NameList;
@@ -42,9 +40,9 @@
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 @@
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);
};
« 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