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

Side by Side Diff: third_party/WebKit/Source/core/fetch/MemoryCache.h

Issue 2192803002: Refactoring: Remove unused member functions in MemoryCache (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 void prune(Resource* justReleasedResource = 0); 192 void prune(Resource* justReleasedResource = 0);
193 193
194 // Called to adjust a resource's size, lru list position, and access count. 194 // Called to adjust a resource's size, lru list position, and access count.
195 void update(Resource*, size_t oldSize, size_t newSize, bool wasAccessed = fa lse); 195 void update(Resource*, size_t oldSize, size_t newSize, bool wasAccessed = fa lse);
196 void updateForAccess(Resource* resource) { update(resource, resource->size() , resource->size(), true); } 196 void updateForAccess(Resource* resource) { update(resource, resource->size() , resource->size(), true); }
197 void updateDecodedResource(Resource*, UpdateReason); 197 void updateDecodedResource(Resource*, UpdateReason);
198 198
199 void makeLive(Resource*); 199 void makeLive(Resource*);
200 void makeDead(Resource*); 200 void makeDead(Resource*);
201 201
202 // This should be called when a Resource object is created.
203 void registerLiveResource(Resource&);
204 // This should be called when a Resource object becomes unnecesarry.
205 void unregisterLiveResource(Resource&);
206
207 void removeURLFromCache(const KURL&); 202 void removeURLFromCache(const KURL&);
208 203
209 Statistics getStatistics(); 204 Statistics getStatistics();
210 205
211 size_t minDeadCapacity() const { return m_minDeadCapacity; } 206 size_t minDeadCapacity() const { return m_minDeadCapacity; }
212 size_t maxDeadCapacity() const { return m_maxDeadCapacity; } 207 size_t maxDeadCapacity() const { return m_maxDeadCapacity; }
213 size_t capacity() const { return m_capacity; } 208 size_t capacity() const { return m_capacity; }
214 size_t liveSize() const { return m_liveSize; } 209 size_t liveSize() const { return m_liveSize; }
215 size_t deadSize() const { return m_deadSize; } 210 size_t deadSize() const { return m_deadSize; }
216 211
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
309 // Returns the global cache. 304 // Returns the global cache.
310 CORE_EXPORT MemoryCache* memoryCache(); 305 CORE_EXPORT MemoryCache* memoryCache();
311 306
312 // Sets the global cache, used to swap in a test instance. Returns the old 307 // Sets the global cache, used to swap in a test instance. Returns the old
313 // MemoryCache object. 308 // MemoryCache object.
314 CORE_EXPORT MemoryCache* replaceMemoryCacheForTesting(MemoryCache*); 309 CORE_EXPORT MemoryCache* replaceMemoryCacheForTesting(MemoryCache*);
315 310
316 } // namespace blink 311 } // namespace blink
317 312
318 #endif 313 #endif
OLDNEW
« 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