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

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

Issue 9635018: Remove static initializer in url_info.cc. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove const Created 8 years, 9 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/predictor_unittest.cc ('k') | chrome/browser/net/url_info.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/net/url_info.h
diff --git a/chrome/browser/net/url_info.h b/chrome/browser/net/url_info.h
index ddabcae8b507fc0a26dcaed1f2cf74f2ec846e0d..ca5ee1f7af6a3f8d13a4c2d436d2523ab172aa44 100644
--- a/chrome/browser/net/url_info.h
+++ b/chrome/browser/net/url_info.h
@@ -64,14 +64,12 @@ class UrlInfo {
FOUND, // DNS resolution completed.
NO_SUCH_NAME, // DNS resolution completed.
};
- static const base::TimeDelta kMaxNonNetworkDnsLookupDuration;
- // The number of OS cache entries we can guarantee(?) before cache eviction
- // might likely take place.
- static const int kMaxGuaranteedDnsCacheSize = 50;
typedef std::vector<UrlInfo> UrlInfoTable;
- static const base::TimeDelta kNullDuration;
+ static base::TimeDelta NullDuration() {
+ return base::TimeDelta::FromMilliseconds(-1);
+ }
// UrlInfo are usually made by the default constructor during
// initializing of the Predictor's map (of info for Hostnames).
@@ -151,9 +149,6 @@ class UrlInfo {
// Helper function for about:dns printing.
std::string GetAsciiMotivation() const;
- // The next declaration is non-const to facilitate testing.
- static base::TimeDelta cache_expiration_duration_;
-
// The current state of this instance.
DnsProcessingState state_;
« no previous file with comments | « chrome/browser/net/predictor_unittest.cc ('k') | chrome/browser/net/url_info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698