diff options
author | amarinichev@chromium.org <amarinichev@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-04-05 17:32:36 +0000 |
---|---|---|
committer | amarinichev@chromium.org <amarinichev@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-04-05 17:32:36 +0000 |
commit | a0b612210da1e6a38639a1139c04a6aacc09412d (patch) | |
tree | 9fdd45ba9515315db6933071117f30578bede4ed /content/common/mru_cache.h | |
parent | 149577b3052b5f86464b9a340b261c616f95254e (diff) | |
download | chromium_src-a0b612210da1e6a38639a1139c04a6aacc09412d.zip chromium_src-a0b612210da1e6a38639a1139c04a6aacc09412d.tar.gz chromium_src-a0b612210da1e6a38639a1139c04a6aacc09412d.tar.bz2 |
Added another constructor to MRUCacheBase that specifies the deletor.
R=brettw@chromium.org
BUG=61038
TEST=compile
Review URL: http://codereview.chromium.org/6759068
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@80477 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/common/mru_cache.h')
-rw-r--r-- | content/common/mru_cache.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/content/common/mru_cache.h b/content/common/mru_cache.h index 4c55576..6e94b92 100644 --- a/content/common/mru_cache.h +++ b/content/common/mru_cache.h @@ -1,4 +1,4 @@ -// Copyright (c) 2009 The Chromium Authors. All rights reserved. +// Copyright (c) 2011 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. @@ -57,6 +57,10 @@ class MRUCacheBase { explicit MRUCacheBase(size_type max_size) : max_size_(max_size) { } + MRUCacheBase(size_type max_size, const DeletorType& deletor) + : max_size_(max_size), deletor_(deletor) { + } + virtual ~MRUCacheBase() { iterator i = begin(); while (i != end()) |