diff options
author | pliard@chromium.org <pliard@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-03-09 14:39:48 +0000 |
---|---|---|
committer | pliard@chromium.org <pliard@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-03-09 14:39:48 +0000 |
commit | 368797e90d4f954261abe213e93dc13fc5f135bd (patch) | |
tree | 345c9a9d73a5d7c7071deb80e7b47b2b4765818b /chrome/browser/net/url_info.h | |
parent | 11b4670076c55aafe08c18649b1181241e15a746 (diff) | |
download | chromium_src-368797e90d4f954261abe213e93dc13fc5f135bd.zip chromium_src-368797e90d4f954261abe213e93dc13fc5f135bd.tar.gz chromium_src-368797e90d4f954261abe213e93dc13fc5f135bd.tar.bz2 |
Remove static initializer in url_info.cc.
BUG=94925
TEST=unit_tests
Review URL: http://codereview.chromium.org/9635018
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@125844 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/net/url_info.h')
-rw-r--r-- | chrome/browser/net/url_info.h | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/chrome/browser/net/url_info.h b/chrome/browser/net/url_info.h index ddabcae..eb52f4f 100644 --- a/chrome/browser/net/url_info.h +++ b/chrome/browser/net/url_info.h @@ -1,4 +1,4 @@ -// Copyright (c) 2011 The Chromium Authors. All rights reserved. +// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. @@ -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_; |