Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(114)

Side by Side Diff: public/web/WebCache.h

Issue 401973003: Rename WebCore namespace to blink in Public (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « public/web/WebBlob.h ('k') | public/web/WebCachedURLRequest.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 30 matching lines...) Expand all
41 struct UsageStats { 41 struct UsageStats {
42 // Capacities. 42 // Capacities.
43 size_t minDeadCapacity; 43 size_t minDeadCapacity;
44 size_t maxDeadCapacity; 44 size_t maxDeadCapacity;
45 size_t capacity; 45 size_t capacity;
46 // Utilization. 46 // Utilization.
47 size_t liveSize; 47 size_t liveSize;
48 size_t deadSize; 48 size_t deadSize;
49 }; 49 };
50 50
51 // A struct mirroring WebCore::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 }; 57 };
58 58
59 // A struct mirroring WebCore::MemoryCache::Statistics. 59 // A struct mirroring blink::MemoryCache::Statistics.
60 struct ResourceTypeStats { 60 struct ResourceTypeStats {
61 ResourceTypeStat images; 61 ResourceTypeStat images;
62 ResourceTypeStat cssStyleSheets; 62 ResourceTypeStat cssStyleSheets;
63 ResourceTypeStat scripts; 63 ResourceTypeStat scripts;
64 ResourceTypeStat xslStyleSheets; 64 ResourceTypeStat xslStyleSheets;
65 ResourceTypeStat fonts; 65 ResourceTypeStat fonts;
66 ResourceTypeStat other; 66 ResourceTypeStat other;
67 }; 67 };
68 68
69 // Sets the capacities of the resource cache, evicting objects as necessary. 69 // Sets the capacities of the resource cache, evicting objects as necessary.
(...skipping 12 matching lines...) Expand all
82 // Get usage stats about the resource cache. 82 // Get usage stats about the resource cache.
83 BLINK_EXPORT static void getResourceTypeStats(ResourceTypeStats*); 83 BLINK_EXPORT static void getResourceTypeStats(ResourceTypeStats*);
84 84
85 private: 85 private:
86 WebCache(); // Not intended to be instanced. 86 WebCache(); // Not intended to be instanced.
87 }; 87 };
88 88
89 } // namespace blink 89 } // namespace blink
90 90
91 #endif 91 #endif
OLDNEW
« no previous file with comments | « public/web/WebBlob.h ('k') | public/web/WebCachedURLRequest.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698