| 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 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 encodedSizeDuplicatedInDataURLs; | 140 size_t encodedSizeDuplicatedInDataURLs; |
| 141 size_t purgeableSize; | |
| 142 size_t purgedSize; | |
| 143 | 141 |
| 144 TypeStatistic() | 142 TypeStatistic() |
| 145 : count(0) | 143 : count(0) |
| 146 , size(0) | 144 , size(0) |
| 147 , liveSize(0) | 145 , liveSize(0) |
| 148 , decodedSize(0) | 146 , decodedSize(0) |
| 149 , encodedSize(0) | 147 , encodedSize(0) |
| 150 , encodedSizeDuplicatedInDataURLs(0) | 148 , encodedSizeDuplicatedInDataURLs(0) |
| 151 , purgeableSize(0) | |
| 152 , purgedSize(0) | |
| 153 { | 149 { |
| 154 } | 150 } |
| 155 | 151 |
| 156 void addResource(Resource*); | 152 void addResource(Resource*); |
| 157 }; | 153 }; |
| 158 | 154 |
| 159 struct Statistics { | 155 struct Statistics { |
| 160 STACK_ALLOCATED(); | 156 STACK_ALLOCATED(); |
| 161 TypeStatistic images; | 157 TypeStatistic images; |
| 162 TypeStatistic cssStyleSheets; | 158 TypeStatistic cssStyleSheets; |
| (...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 304 // Returns the global cache. | 300 // Returns the global cache. |
| 305 CORE_EXPORT MemoryCache* memoryCache(); | 301 CORE_EXPORT MemoryCache* memoryCache(); |
| 306 | 302 |
| 307 // Sets the global cache, used to swap in a test instance. Returns the old | 303 // Sets the global cache, used to swap in a test instance. Returns the old |
| 308 // MemoryCache object. | 304 // MemoryCache object. |
| 309 CORE_EXPORT MemoryCache* replaceMemoryCacheForTesting(MemoryCache*); | 305 CORE_EXPORT MemoryCache* replaceMemoryCacheForTesting(MemoryCache*); |
| 310 | 306 |
| 311 } // namespace blink | 307 } // namespace blink |
| 312 | 308 |
| 313 #endif | 309 #endif |
| OLD | NEW |