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

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

Issue 14919: Platform cleanup in chrome/browser/net. (Closed)
Patch Set: Created 12 years 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
diff --git a/chrome/browser/net/dns_master.h b/chrome/browser/net/dns_master.h
index 4bc61ee72731ae12cc4e60941a82eee55ccbc540..a606152dcd8331411b573b5ff18f2b3897f6e452 100644
--- a/chrome/browser/net/dns_master.h
+++ b/chrome/browser/net/dns_master.h
@@ -38,7 +38,7 @@ typedef std::map<std::string, DnsHostInfo> Results;
class DnsMaster {
public:
// The number of slave processes that will do DNS prefetching
- static const int kSlaveCountMax = 8;
+ static const size_t kSlaveCountMax = 8;
explicit DnsMaster(base::TimeDelta shutdown_wait_time);
@@ -113,7 +113,7 @@ class DnsMaster {
return results_[hostname].queue_duration();
}
- int running_slave_count() {
+ size_t running_slave_count() {
AutoLock auto_lock(lock_);
return running_slave_count_;
}
@@ -171,8 +171,8 @@ class DnsMaster {
// is done using ConditionVariables.
ConditionVariable slaves_have_work_;
- int slave_count_; // Count of slave processes started.
- int running_slave_count_; // Count of slaves process still running.
+ size_t slave_count_; // Count of slave processes started.
+ size_t running_slave_count_; // Count of slaves process still running.
// The following arrays are only initialized as
// slave_count_ grows (up to the indicated max).
« 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