summaryrefslogtreecommitdiffstats
path: root/chrome/browser/net/dns_global.h
diff options
context:
space:
mode:
authoreroman@chromium.org <eroman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-01-11 19:13:08 +0000
committereroman@chromium.org <eroman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-01-11 19:13:08 +0000
commit8d53d50afb7ed6df2a39c175bfdb2485a3a25d9d (patch)
treeeab27a8ece609f3bd6fad7081cbf5fd36ec0922f /chrome/browser/net/dns_global.h
parent762d2db5d5e1b0d7852ddb2efef982b00e897322 (diff)
downloadchromium_src-8d53d50afb7ed6df2a39c175bfdb2485a3a25d9d.zip
chromium_src-8d53d50afb7ed6df2a39c175bfdb2485a3a25d9d.tar.gz
chromium_src-8d53d50afb7ed6df2a39c175bfdb2485a3a25d9d.tar.bz2
Clear the host cache when closing the last incognito window.
This avoids retaining navigation history relating to the incognito window. I piggy-back off of the dns prefetcher's OffTheRecordObserver to do this. In the future I hope to have a separate host resolver for off the record mode, so this won't be necessary. BUG=24629 Review URL: http://codereview.chromium.org/523076 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@35923 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/net/dns_global.h')
-rw-r--r--chrome/browser/net/dns_global.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/chrome/browser/net/dns_global.h b/chrome/browser/net/dns_global.h
index 965e152..48d7a56 100644
--- a/chrome/browser/net/dns_global.h
+++ b/chrome/browser/net/dns_global.h
@@ -57,26 +57,26 @@ void DnsPrefetchGetHtmlInfo(std::string* output);
//------------------------------------------------------------------------------
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