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

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

Issue 1852663002: Oilpan: Remove WillBe types (part 9) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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
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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 // from MemoryCacheLRUList. 68 // from MemoryCacheLRUList.
69 class MemoryCacheEntry final : public GarbageCollectedFinalized<MemoryCacheEntry > { 69 class MemoryCacheEntry final : public GarbageCollectedFinalized<MemoryCacheEntry > {
70 public: 70 public:
71 static MemoryCacheEntry* create(Resource* resource) 71 static MemoryCacheEntry* create(Resource* resource)
72 { 72 {
73 return new MemoryCacheEntry(resource); 73 return new MemoryCacheEntry(resource);
74 } 74 }
75 DECLARE_TRACE(); 75 DECLARE_TRACE();
76 void dispose(); 76 void dispose();
77 77
78 RefPtrWillBeMember<Resource> m_resource; 78 Member<Resource> m_resource;
79 bool m_inLiveDecodedResourcesList; 79 bool m_inLiveDecodedResourcesList;
80 unsigned m_accessCount; 80 unsigned m_accessCount;
81 double m_lastDecodedAccessTime; // Used as a thrash guard 81 double m_lastDecodedAccessTime; // Used as a thrash guard
82 82
83 Member<MemoryCacheEntry> m_previousInLiveResourcesList; 83 Member<MemoryCacheEntry> m_previousInLiveResourcesList;
84 Member<MemoryCacheEntry> m_nextInLiveResourcesList; 84 Member<MemoryCacheEntry> m_nextInLiveResourcesList;
85 Member<MemoryCacheEntry> m_previousInAllResourcesList; 85 Member<MemoryCacheEntry> m_previousInAllResourcesList;
86 Member<MemoryCacheEntry> m_nextInAllResourcesList; 86 Member<MemoryCacheEntry> m_nextInAllResourcesList;
87 87
88 private: 88 private:
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 TypeStatistic images; 158 TypeStatistic images;
159 TypeStatistic cssStyleSheets; 159 TypeStatistic cssStyleSheets;
160 TypeStatistic scripts; 160 TypeStatistic scripts;
161 TypeStatistic xslStyleSheets; 161 TypeStatistic xslStyleSheets;
162 TypeStatistic fonts; 162 TypeStatistic fonts;
163 TypeStatistic other; 163 TypeStatistic other;
164 }; 164 };
165 165
166 Resource* resourceForURL(const KURL&); 166 Resource* resourceForURL(const KURL&);
167 Resource* resourceForURL(const KURL&, const String& cacheIdentifier); 167 Resource* resourceForURL(const KURL&, const String& cacheIdentifier);
168 WillBeHeapVector<RawPtrWillBeMember<Resource>> resourcesForURL(const KURL&); 168 HeapVector<Member<Resource>> resourcesForURL(const KURL&);
169 169
170 void add(Resource*); 170 void add(Resource*);
171 void remove(Resource*); 171 void remove(Resource*);
172 bool contains(const Resource*) const; 172 bool contains(const Resource*) const;
173 173
174 static KURL removeFragmentIdentifierIfNeeded(const KURL& originalURL); 174 static KURL removeFragmentIdentifierIfNeeded(const KURL& originalURL);
175 175
176 static String defaultCacheIdentifier(); 176 static String defaultCacheIdentifier();
177 177
178 // Sets the cache's memory capacities, in bytes. These will hold only approx imately, 178 // Sets the cache's memory capacities, in bytes. These will hold only approx imately,
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
305 // Returns the global cache. 305 // Returns the global cache.
306 CORE_EXPORT MemoryCache* memoryCache(); 306 CORE_EXPORT MemoryCache* memoryCache();
307 307
308 // Sets the global cache, used to swap in a test instance. Returns the old 308 // Sets the global cache, used to swap in a test instance. Returns the old
309 // MemoryCache object. 309 // MemoryCache object.
310 CORE_EXPORT MemoryCache* replaceMemoryCacheForTesting(MemoryCache*); 310 CORE_EXPORT MemoryCache* replaceMemoryCacheForTesting(MemoryCache*);
311 311
312 } // namespace blink 312 } // namespace blink
313 313
314 #endif 314 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/fetch/LinkFetchResource.cpp ('k') | third_party/WebKit/Source/core/fetch/MemoryCache.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698