| OLD | NEW |
| 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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 #undef MEMORY_CACHE_STATS | 59 #undef MEMORY_CACHE_STATS |
| 60 | 60 |
| 61 enum UpdateReason { | 61 enum UpdateReason { |
| 62 UpdateForAccess, | 62 UpdateForAccess, |
| 63 UpdateForPropertyChange | 63 UpdateForPropertyChange |
| 64 }; | 64 }; |
| 65 | 65 |
| 66 // MemoryCacheEntry class is used only in MemoryCache class, but we don't make | 66 // MemoryCacheEntry class is used only in MemoryCache class, but we don't make |
| 67 // MemoryCacheEntry class an inner class of MemoryCache because of dependency | 67 // MemoryCacheEntry class an inner class of MemoryCache because of dependency |
| 68 // from MemoryCacheLRUList. | 68 // from MemoryCacheLRUList. |
| 69 class MemoryCacheEntry final : public GarbageCollectedFinalized<MemoryCacheEntry
> { | 69 class MemoryCacheEntry final : public GarbageCollected<MemoryCacheEntry> { |
| 70 public: | 70 public: |
| 71 static MemoryCacheEntry* create(Resource* resource) | 71 static MemoryCacheEntry* create(Resource* resource) |
| 72 { | 72 { |
| 73 return new MemoryCacheEntry(resource); | 73 return new MemoryCacheEntry(resource); |
| 74 } | 74 } |
| 75 DECLARE_TRACE(); | 75 DECLARE_TRACE(); |
| 76 void dispose(); | 76 void dispose(); |
| 77 | 77 |
| 78 Member<Resource> m_resource; | 78 Member<Resource> m_resource; |
| 79 bool m_inLiveDecodedResourcesList; | 79 bool m_inLiveDecodedResourcesList; |
| (...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 306 // Returns the global cache. | 306 // Returns the global cache. |
| 307 CORE_EXPORT MemoryCache* memoryCache(); | 307 CORE_EXPORT MemoryCache* memoryCache(); |
| 308 | 308 |
| 309 // Sets the global cache, used to swap in a test instance. Returns the old | 309 // Sets the global cache, used to swap in a test instance. Returns the old |
| 310 // MemoryCache object. | 310 // MemoryCache object. |
| 311 CORE_EXPORT MemoryCache* replaceMemoryCacheForTesting(MemoryCache*); | 311 CORE_EXPORT MemoryCache* replaceMemoryCacheForTesting(MemoryCache*); |
| 312 | 312 |
| 313 } // namespace blink | 313 } // namespace blink |
| 314 | 314 |
| 315 #endif | 315 #endif |
| OLD | NEW |