| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 size_t liveSize; | 47 size_t liveSize; |
| 48 size_t deadSize; | 48 size_t deadSize; |
| 49 }; | 49 }; |
| 50 | 50 |
| 51 // A struct mirroring blink::MemoryCache::TypeStatistic. | 51 // A struct mirroring blink::MemoryCache::TypeStatistic. |
| 52 struct ResourceTypeStat { | 52 struct ResourceTypeStat { |
| 53 size_t count; | 53 size_t count; |
| 54 size_t size; | 54 size_t size; |
| 55 size_t liveSize; | 55 size_t liveSize; |
| 56 size_t decodedSize; | 56 size_t decodedSize; |
| 57 size_t purgedSize; |
| 58 size_t purgeableSize; |
| 57 }; | 59 }; |
| 58 | 60 |
| 59 // A struct mirroring blink::MemoryCache::Statistics. | 61 // A struct mirroring blink::MemoryCache::Statistics. |
| 60 struct ResourceTypeStats { | 62 struct ResourceTypeStats { |
| 61 ResourceTypeStat images; | 63 ResourceTypeStat images; |
| 62 ResourceTypeStat cssStyleSheets; | 64 ResourceTypeStat cssStyleSheets; |
| 63 ResourceTypeStat scripts; | 65 ResourceTypeStat scripts; |
| 64 ResourceTypeStat xslStyleSheets; | 66 ResourceTypeStat xslStyleSheets; |
| 65 ResourceTypeStat fonts; | 67 ResourceTypeStat fonts; |
| 66 ResourceTypeStat other; | 68 ResourceTypeStat other; |
| (...skipping 19 matching lines...) Expand all Loading... |
| 86 // cleared if they are actively referenced). And releases cache memory. | 88 // cleared if they are actively referenced). And releases cache memory. |
| 87 BLINK_EXPORT static void pruneAll(); | 89 BLINK_EXPORT static void pruneAll(); |
| 88 | 90 |
| 89 private: | 91 private: |
| 90 WebCache(); // Not intended to be instanced. | 92 WebCache(); // Not intended to be instanced. |
| 91 }; | 93 }; |
| 92 | 94 |
| 93 } // namespace blink | 95 } // namespace blink |
| 94 | 96 |
| 95 #endif | 97 #endif |
| OLD | NEW |