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

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

Issue 523076: Clear the host cache when closing the last incognito window.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Address jar's comments Created 10 years, 11 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
Index: chrome/browser/net/dns_global.h
===================================================================
--- chrome/browser/net/dns_global.h (revision 35853)
+++ chrome/browser/net/dns_global.h (working copy)
@@ -57,26 +57,26 @@
//------------------------------------------------------------------------------
void SaveDnsPrefetchStateForNextStartupAndTrim(PrefService* prefs);
// Helper class to handle global init and shutdown.
-class DnsPrefetcherInit {
+class DnsGlobalInit {
public:
// Too many concurrent lookups negate benefits of prefetching by trashing
// the OS cache before all resource loading is complete.
// This is the default.
- static const size_t kMaxConcurrentLookups;
+ static const size_t kMaxPrefetchConcurrentLookups;
// When prefetch requests are queued beyond some period of time, then the
// system is congested, and we need to clear all queued requests to get out
// of that state. The following is the suggested default time limit.
- static const int kMaxQueueingDelayMs;
+ static const int kMaxPrefetchQueueingDelayMs;
- DnsPrefetcherInit(PrefService* user_prefs, PrefService* local_state);
- ~DnsPrefetcherInit();
+ DnsGlobalInit(PrefService* user_prefs, PrefService* local_state);
+ ~DnsGlobalInit();
private:
// Maintain a field trial instance when we do A/B testing.
scoped_refptr<FieldTrial> trial_;
- DISALLOW_COPY_AND_ASSIGN(DnsPrefetcherInit);
+ DISALLOW_COPY_AND_ASSIGN(DnsGlobalInit);
};
} // namespace chrome_browser_net

Powered by Google App Engine
This is Rietveld 408576698