summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjar@chromium.org <jar@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-06-02 19:00:13 +0000
committerjar@chromium.org <jar@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-06-02 19:00:13 +0000
commit9b99bd9fd5ea25f4bc0509098010fa8621dad59b (patch)
treed9bacf987b0346ba6c44dd3acf958b9e8c6cf9ce
parentbca5b5da91006353675499471751ee4162a621a6 (diff)
downloadchromium_src-9b99bd9fd5ea25f4bc0509098010fa8621dad59b.zip
chromium_src-9b99bd9fd5ea25f4bc0509098010fa8621dad59b.tar.gz
chromium_src-9b99bd9fd5ea25f4bc0509098010fa8621dad59b.tar.bz2
Fix Clank error by adding explicit destructor
TBR=willchan Review URL: http://codereview.chromium.org/7109012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@87650 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--chrome/browser/net/connect_interceptor.cc3
-rw-r--r--chrome/browser/net/connect_interceptor.h1
2 files changed, 4 insertions, 0 deletions
diff --git a/chrome/browser/net/connect_interceptor.cc b/chrome/browser/net/connect_interceptor.cc
index d6e3e33..f695454 100644
--- a/chrome/browser/net/connect_interceptor.cc
+++ b/chrome/browser/net/connect_interceptor.cc
@@ -100,6 +100,9 @@ ConnectInterceptor::TimedCache::TimedCache(const base::TimeDelta& max_duration)
max_duration_(max_duration) {
}
+// Make Clang compilation happy with explicit destructor.
+ConnectInterceptor::TimedCache::~TimedCache() {}
+
bool ConnectInterceptor::TimedCache::WasRecentlySeen(const GURL& url) {
DCHECK_EQ(url.GetWithEmptyPath(), url);
// Evict any overly old entries.
diff --git a/chrome/browser/net/connect_interceptor.h b/chrome/browser/net/connect_interceptor.h
index c1f6177..eca1c17 100644
--- a/chrome/browser/net/connect_interceptor.h
+++ b/chrome/browser/net/connect_interceptor.h
@@ -44,6 +44,7 @@ class ConnectInterceptor : public net::URLRequest::Interceptor {
class TimedCache {
public:
explicit TimedCache(const base::TimeDelta& max_duration);
+ ~TimedCache();
// Evicts any entries that have been in the FIFO "too long," and then checks
// to see if the given url is (still) in the FIFO cache.