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

Side by Side Diff: Source/core/fetch/MemoryCache.h

Issue 1278403007: [tracing] Fix accounting of WebCache memory statistics (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@oilpan_light
Patch Set: Changing internal api to use size_t. Created 5 years, 4 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
« no previous file with comments | « no previous file | Source/web/WebCache.cpp » ('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) 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 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 namespace blink { 130 namespace blink {
131 131
132 class CORE_EXPORT MemoryCache final : public GarbageCollectedFinalized<MemoryCac he>, public WebThread::TaskObserver { 132 class CORE_EXPORT MemoryCache final : public GarbageCollectedFinalized<MemoryCac he>, public WebThread::TaskObserver {
133 WTF_MAKE_NONCOPYABLE(MemoryCache); 133 WTF_MAKE_NONCOPYABLE(MemoryCache);
134 public: 134 public:
135 static MemoryCache* create(); 135 static MemoryCache* create();
136 ~MemoryCache(); 136 ~MemoryCache();
137 DECLARE_TRACE(); 137 DECLARE_TRACE();
138 138
139 struct TypeStatistic { 139 struct TypeStatistic {
140 int count; 140 size_t count;
141 int size; 141 size_t size;
142 int liveSize; 142 size_t liveSize;
143 int decodedSize; 143 size_t decodedSize;
144 int encodedSize; 144 size_t encodedSize;
145 int encodedSizeDuplicatedInDataURLs; 145 size_t encodedSizeDuplicatedInDataURLs;
146 int purgeableSize; 146 size_t purgeableSize;
147 int purgedSize; 147 size_t purgedSize;
148 148
149 TypeStatistic() 149 TypeStatistic()
150 : count(0) 150 : count(0)
151 , size(0) 151 , size(0)
152 , liveSize(0) 152 , liveSize(0)
153 , decodedSize(0) 153 , decodedSize(0)
154 , encodedSize(0) 154 , encodedSize(0)
155 , encodedSizeDuplicatedInDataURLs(0) 155 , encodedSizeDuplicatedInDataURLs(0)
156 , purgeableSize(0) 156 , purgeableSize(0)
157 , purgedSize(0) 157 , purgedSize(0)
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
322 // Returns the global cache. 322 // Returns the global cache.
323 CORE_EXPORT MemoryCache* memoryCache(); 323 CORE_EXPORT MemoryCache* memoryCache();
324 324
325 // Sets the global cache, used to swap in a test instance. Returns the old 325 // Sets the global cache, used to swap in a test instance. Returns the old
326 // MemoryCache object. 326 // MemoryCache object.
327 CORE_EXPORT MemoryCache* replaceMemoryCacheForTesting(MemoryCache*); 327 CORE_EXPORT MemoryCache* replaceMemoryCacheForTesting(MemoryCache*);
328 328
329 } 329 }
330 330
331 #endif 331 #endif
OLDNEW
« no previous file with comments | « no previous file | Source/web/WebCache.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698