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

Side by Side Diff: Source/core/loader/cache/MemoryCache.h

Issue 13973026: remove memoryinstrumentation Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: remove the rest part of MemoryInstrumentation Created 7 years, 8 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 Copyright (C) 1998 Lars Knoll (knoll@mpi-hd.mpg.de) 2 Copyright (C) 1998 Lars Knoll (knoll@mpi-hd.mpg.de)
3 Copyright (C) 2001 Dirk Mueller <mueller@kde.org> 3 Copyright (C) 2001 Dirk Mueller <mueller@kde.org>
4 Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. 4 Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved.
5 5
6 This library is free software; you can redistribute it and/or 6 This library is free software; you can redistribute it and/or
7 modify it under the terms of the GNU Library General Public 7 modify it under the terms of the GNU Library General Public
8 License as published by the Free Software Foundation; either 8 License as published by the Free Software Foundation; either
9 version 2 of the License, or (at your option) any later version. 9 version 2 of the License, or (at your option) any later version.
10 10
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 typedef HashSet<RefPtr<SecurityOrigin> > SecurityOriginSet; 162 typedef HashSet<RefPtr<SecurityOrigin> > SecurityOriginSet;
163 void removeResourcesWithOrigin(SecurityOrigin*); 163 void removeResourcesWithOrigin(SecurityOrigin*);
164 void getOriginsWithCache(SecurityOriginSet& origins); 164 void getOriginsWithCache(SecurityOriginSet& origins);
165 165
166 unsigned minDeadCapacity() const { return m_minDeadCapacity; } 166 unsigned minDeadCapacity() const { return m_minDeadCapacity; }
167 unsigned maxDeadCapacity() const { return m_maxDeadCapacity; } 167 unsigned maxDeadCapacity() const { return m_maxDeadCapacity; }
168 unsigned capacity() const { return m_capacity; } 168 unsigned capacity() const { return m_capacity; }
169 unsigned liveSize() const { return m_liveSize; } 169 unsigned liveSize() const { return m_liveSize; }
170 unsigned deadSize() const { return m_deadSize; } 170 unsigned deadSize() const { return m_deadSize; }
171 171
172 void reportMemoryUsage(MemoryObjectInfo*) const;
173
174 private: 172 private:
175 MemoryCache(); 173 MemoryCache();
176 ~MemoryCache(); // Not implemented to make sure nobody accidentally calls de lete -- WebCore does not delete singletons. 174 ~MemoryCache(); // Not implemented to make sure nobody accidentally calls de lete -- WebCore does not delete singletons.
177 175
178 LRUList* lruListFor(CachedResource*); 176 LRUList* lruListFor(CachedResource*);
179 #ifndef NDEBUG 177 #ifndef NDEBUG
180 void dumpStats(); 178 void dumpStats();
181 void dumpLRULists(bool includeLive) const; 179 void dumpLRULists(bool includeLive) const;
182 #endif 180 #endif
183 181
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
227 { 225 {
228 return false; 226 return false;
229 } 227 }
230 228
231 // Function to obtain the global cache. 229 // Function to obtain the global cache.
232 MemoryCache* memoryCache(); 230 MemoryCache* memoryCache();
233 231
234 } 232 }
235 233
236 #endif 234 #endif
OLDNEW
« no previous file with comments | « Source/core/loader/cache/CachedXSLStyleSheet.cpp ('k') | Source/core/loader/cache/MemoryCache.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698