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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 { | 109 { |
110 } | 110 } |
111 }; | 111 }; |
112 | 112 |
113 WILL_NOT_BE_EAGERLY_TRACED_CLASS(MemoryCacheEntry); | 113 WILL_NOT_BE_EAGERLY_TRACED_CLASS(MemoryCacheEntry); |
114 | 114 |
115 // MemoryCacheLRUList is used only in MemoryCache class, but we don't make | 115 // MemoryCacheLRUList is used only in MemoryCache class, but we don't make |
116 // MemoryCacheLRUList an inner struct of MemoryCache because we can't define | 116 // MemoryCacheLRUList an inner struct of MemoryCache because we can't define |
117 // VectorTraits for inner structs. | 117 // VectorTraits for inner structs. |
118 struct MemoryCacheLRUList final { | 118 struct MemoryCacheLRUList final { |
119 ALLOW_ONLY_INLINE_ALLOCATION(); | 119 DISALLOW_NEW_EXCEPT_PLACEMENT_NEW(); |
120 public: | 120 public: |
121 Member<MemoryCacheEntry> m_head; | 121 Member<MemoryCacheEntry> m_head; |
122 Member<MemoryCacheEntry> m_tail; | 122 Member<MemoryCacheEntry> m_tail; |
123 | 123 |
124 MemoryCacheLRUList() : m_head(nullptr), m_tail(nullptr) { } | 124 MemoryCacheLRUList() : m_head(nullptr), m_tail(nullptr) { } |
125 DECLARE_TRACE(); | 125 DECLARE_TRACE(); |
126 }; | 126 }; |
127 | 127 |
128 } | 128 } |
129 | 129 |
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
329 // Returns the global cache. | 329 // Returns the global cache. |
330 CORE_EXPORT MemoryCache* memoryCache(); | 330 CORE_EXPORT MemoryCache* memoryCache(); |
331 | 331 |
332 // Sets the global cache, used to swap in a test instance. Returns the old | 332 // Sets the global cache, used to swap in a test instance. Returns the old |
333 // MemoryCache object. | 333 // MemoryCache object. |
334 CORE_EXPORT MemoryCache* replaceMemoryCacheForTesting(MemoryCache*); | 334 CORE_EXPORT MemoryCache* replaceMemoryCacheForTesting(MemoryCache*); |
335 | 335 |
336 } | 336 } |
337 | 337 |
338 #endif | 338 #endif |
OLD | NEW |