| 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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 ~MemoryCache(); | 83 ~MemoryCache(); |
| 84 DECLARE_TRACE(); | 84 DECLARE_TRACE(); |
| 85 | 85 |
| 86 struct TypeStatistic { | 86 struct TypeStatistic { |
| 87 STACK_ALLOCATED(); | 87 STACK_ALLOCATED(); |
| 88 size_t count; | 88 size_t count; |
| 89 size_t size; | 89 size_t size; |
| 90 size_t decoded_size; | 90 size_t decoded_size; |
| 91 size_t encoded_size; | 91 size_t encoded_size; |
| 92 size_t overhead_size; | 92 size_t overhead_size; |
| 93 size_t encoded_size_duplicated_in_data_ur_ls; | 93 size_t encoded_size_duplicated_in_data_urls; |
| 94 | 94 |
| 95 TypeStatistic() | 95 TypeStatistic() |
| 96 : count(0), | 96 : count(0), |
| 97 size(0), | 97 size(0), |
| 98 decoded_size(0), | 98 decoded_size(0), |
| 99 encoded_size(0), | 99 encoded_size(0), |
| 100 overhead_size(0), | 100 overhead_size(0), |
| 101 encoded_size_duplicated_in_data_ur_ls(0) {} | 101 encoded_size_duplicated_in_data_urls(0) {} |
| 102 | 102 |
| 103 void AddResource(Resource*); | 103 void AddResource(Resource*); |
| 104 }; | 104 }; |
| 105 | 105 |
| 106 struct Statistics { | 106 struct Statistics { |
| 107 STACK_ALLOCATED(); | 107 STACK_ALLOCATED(); |
| 108 TypeStatistic images; | 108 TypeStatistic images; |
| 109 TypeStatistic css_style_sheets; | 109 TypeStatistic css_style_sheets; |
| 110 TypeStatistic scripts; | 110 TypeStatistic scripts; |
| 111 TypeStatistic xsl_style_sheets; | 111 TypeStatistic xsl_style_sheets; |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 211 // Returns the global cache. | 211 // Returns the global cache. |
| 212 PLATFORM_EXPORT MemoryCache* GetMemoryCache(); | 212 PLATFORM_EXPORT MemoryCache* GetMemoryCache(); |
| 213 | 213 |
| 214 // Sets the global cache, used to swap in a test instance. Returns the old | 214 // Sets the global cache, used to swap in a test instance. Returns the old |
| 215 // MemoryCache object. | 215 // MemoryCache object. |
| 216 PLATFORM_EXPORT MemoryCache* ReplaceMemoryCacheForTesting(MemoryCache*); | 216 PLATFORM_EXPORT MemoryCache* ReplaceMemoryCacheForTesting(MemoryCache*); |
| 217 | 217 |
| 218 } // namespace blink | 218 } // namespace blink |
| 219 | 219 |
| 220 #endif | 220 #endif |
| OLD | NEW |