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

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

Issue 1929493002: Remove unnecessary uses of GarbageCollectedFinalized<>. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add two leftover classes needing same treatment Created 4 years, 7 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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 #undef MEMORY_CACHE_STATS 59 #undef MEMORY_CACHE_STATS
60 60
61 enum UpdateReason { 61 enum UpdateReason {
62 UpdateForAccess, 62 UpdateForAccess,
63 UpdateForPropertyChange 63 UpdateForPropertyChange
64 }; 64 };
65 65
66 // MemoryCacheEntry class is used only in MemoryCache class, but we don't make 66 // MemoryCacheEntry class is used only in MemoryCache class, but we don't make
67 // MemoryCacheEntry class an inner class of MemoryCache because of dependency 67 // MemoryCacheEntry class an inner class of MemoryCache because of dependency
68 // from MemoryCacheLRUList. 68 // from MemoryCacheLRUList.
69 class MemoryCacheEntry final : public GarbageCollectedFinalized<MemoryCacheEntry > { 69 class MemoryCacheEntry final : public GarbageCollected<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 Member<Resource> m_resource; 78 Member<Resource> m_resource;
79 bool m_inLiveDecodedResourcesList; 79 bool m_inLiveDecodedResourcesList;
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after
306 // Returns the global cache. 306 // Returns the global cache.
307 CORE_EXPORT MemoryCache* memoryCache(); 307 CORE_EXPORT MemoryCache* memoryCache();
308 308
309 // Sets the global cache, used to swap in a test instance. Returns the old 309 // Sets the global cache, used to swap in a test instance. Returns the old
310 // MemoryCache object. 310 // MemoryCache object.
311 CORE_EXPORT MemoryCache* replaceMemoryCacheForTesting(MemoryCache*); 311 CORE_EXPORT MemoryCache* replaceMemoryCacheForTesting(MemoryCache*);
312 312
313 } // namespace blink 313 } // namespace blink
314 314
315 #endif 315 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/events/EventPath.h ('k') | third_party/WebKit/Source/core/fileapi/FileReader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698