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 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 , m_liveResourcePriority(MemoryCacheLiveResourcePriorityLow) | 102 , m_liveResourcePriority(MemoryCacheLiveResourcePriorityLow) |
103 , m_lastDecodedAccessTime(0.0) | 103 , m_lastDecodedAccessTime(0.0) |
104 , m_previousInLiveResourcesList(nullptr) | 104 , m_previousInLiveResourcesList(nullptr) |
105 , m_nextInLiveResourcesList(nullptr) | 105 , m_nextInLiveResourcesList(nullptr) |
106 , m_previousInAllResourcesList(nullptr) | 106 , m_previousInAllResourcesList(nullptr) |
107 , m_nextInAllResourcesList(nullptr) | 107 , m_nextInAllResourcesList(nullptr) |
108 { | 108 { |
109 } | 109 } |
110 }; | 110 }; |
111 | 111 |
| 112 WILL_NOT_BE_EAGERLY_TRACED_CLASS(MemoryCacheEntry); |
| 113 |
112 // MemoryCacheLRUList is used only in MemoryCache class, but we don't make | 114 // MemoryCacheLRUList is used only in MemoryCache class, but we don't make |
113 // MemoryCacheLRUList an inner struct of MemoryCache because we can't define | 115 // MemoryCacheLRUList an inner struct of MemoryCache because we can't define |
114 // VectorTraits for inner structs. | 116 // VectorTraits for inner structs. |
115 struct MemoryCacheLRUList final { | 117 struct MemoryCacheLRUList final { |
116 ALLOW_ONLY_INLINE_ALLOCATION(); | 118 ALLOW_ONLY_INLINE_ALLOCATION(); |
117 public: | 119 public: |
118 RawPtrWillBeMember<MemoryCacheEntry> m_head; | 120 RawPtrWillBeMember<MemoryCacheEntry> m_head; |
119 RawPtrWillBeMember<MemoryCacheEntry> m_tail; | 121 RawPtrWillBeMember<MemoryCacheEntry> m_tail; |
120 | 122 |
121 MemoryCacheLRUList() : m_head(nullptr), m_tail(nullptr) { } | 123 MemoryCacheLRUList() : m_head(nullptr), m_tail(nullptr) { } |
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
309 // Returns the global cache. | 311 // Returns the global cache. |
310 MemoryCache* memoryCache(); | 312 MemoryCache* memoryCache(); |
311 | 313 |
312 // Sets the global cache, used to swap in a test instance. Returns the old | 314 // Sets the global cache, used to swap in a test instance. Returns the old |
313 // MemoryCache object. | 315 // MemoryCache object. |
314 PassOwnPtrWillBeRawPtr<MemoryCache> replaceMemoryCacheForTesting(PassOwnPtrWillB
eRawPtr<MemoryCache>); | 316 PassOwnPtrWillBeRawPtr<MemoryCache> replaceMemoryCacheForTesting(PassOwnPtrWillB
eRawPtr<MemoryCache>); |
315 | 317 |
316 } | 318 } |
317 | 319 |
318 #endif | 320 #endif |
OLD | NEW |