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

Unified Diff: content/common/mru_cache.h

Issue 6759068: Added another constructor to MRUCacheBase that specifies the deletor. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/mru_cache.h
diff --git a/content/common/mru_cache.h b/content/common/mru_cache.h
index 4c555767e85f30eef2b3af9dab8cecbd271e97e8..6e94b92e28c1ef068b21eeeb77cc151310f5db2c 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())
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698