| 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 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 130 ~MemoryCache(); | 130 ~MemoryCache(); |
| 131 DECLARE_TRACE(); | 131 DECLARE_TRACE(); |
| 132 | 132 |
| 133 struct TypeStatistic { | 133 struct TypeStatistic { |
| 134 STACK_ALLOCATED(); | 134 STACK_ALLOCATED(); |
| 135 size_t count; | 135 size_t count; |
| 136 size_t size; | 136 size_t size; |
| 137 size_t liveSize; | 137 size_t liveSize; |
| 138 size_t decodedSize; | 138 size_t decodedSize; |
| 139 size_t encodedSize; | 139 size_t encodedSize; |
| 140 size_t overheadSize; |
| 140 size_t encodedSizeDuplicatedInDataURLs; | 141 size_t encodedSizeDuplicatedInDataURLs; |
| 141 | 142 |
| 142 TypeStatistic() | 143 TypeStatistic() |
| 143 : count(0) | 144 : count(0) |
| 144 , size(0) | 145 , size(0) |
| 145 , liveSize(0) | 146 , liveSize(0) |
| 146 , decodedSize(0) | 147 , decodedSize(0) |
| 147 , encodedSize(0) | 148 , encodedSize(0) |
| 149 , overheadSize(0) |
| 148 , encodedSizeDuplicatedInDataURLs(0) | 150 , encodedSizeDuplicatedInDataURLs(0) |
| 149 { | 151 { |
| 150 } | 152 } |
| 151 | 153 |
| 152 void addResource(Resource*); | 154 void addResource(Resource*); |
| 153 }; | 155 }; |
| 154 | 156 |
| 155 struct Statistics { | 157 struct Statistics { |
| 156 STACK_ALLOCATED(); | 158 STACK_ALLOCATED(); |
| 157 TypeStatistic images; | 159 TypeStatistic images; |
| (...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 294 // Returns the global cache. | 296 // Returns the global cache. |
| 295 CORE_EXPORT MemoryCache* memoryCache(); | 297 CORE_EXPORT MemoryCache* memoryCache(); |
| 296 | 298 |
| 297 // Sets the global cache, used to swap in a test instance. Returns the old | 299 // Sets the global cache, used to swap in a test instance. Returns the old |
| 298 // MemoryCache object. | 300 // MemoryCache object. |
| 299 CORE_EXPORT MemoryCache* replaceMemoryCacheForTesting(MemoryCache*); | 301 CORE_EXPORT MemoryCache* replaceMemoryCacheForTesting(MemoryCache*); |
| 300 | 302 |
| 301 } // namespace blink | 303 } // namespace blink |
| 302 | 304 |
| 303 #endif | 305 #endif |
| OLD | NEW |