| 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; | |
| 59 }; | 57 }; |
| 60 | 58 |
| 61 // A struct mirroring blink::MemoryCache::Statistics. | 59 // A struct mirroring blink::MemoryCache::Statistics. |
| 62 struct ResourceTypeStats { | 60 struct ResourceTypeStats { |
| 63 ResourceTypeStat images; | 61 ResourceTypeStat images; |
| 64 ResourceTypeStat cssStyleSheets; | 62 ResourceTypeStat cssStyleSheets; |
| 65 ResourceTypeStat scripts; | 63 ResourceTypeStat scripts; |
| 66 ResourceTypeStat xslStyleSheets; | 64 ResourceTypeStat xslStyleSheets; |
| 67 ResourceTypeStat fonts; | 65 ResourceTypeStat fonts; |
| 68 ResourceTypeStat other; | 66 ResourceTypeStat other; |
| (...skipping 15 matching lines...) Expand all Loading... |
| 84 // Get usage stats about the resource cache. | 82 // Get usage stats about the resource cache. |
| 85 BLINK_EXPORT static void getResourceTypeStats(ResourceTypeStats*); | 83 BLINK_EXPORT static void getResourceTypeStats(ResourceTypeStats*); |
| 86 | 84 |
| 87 private: | 85 private: |
| 88 WebCache(); // Not intended to be instanced. | 86 WebCache(); // Not intended to be instanced. |
| 89 }; | 87 }; |
| 90 | 88 |
| 91 } // namespace blink | 89 } // namespace blink |
| 92 | 90 |
| 93 #endif | 91 #endif |
| OLD | NEW |