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

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

Issue 463543002: Oilpan: Ensure that classes with virtual trace methods always have vtables for their left-most base… (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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 | Annotate | Revision Log
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 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 124
125 WTF_ALLOW_MOVE_INIT_AND_COMPARE_WITH_MEM_FUNCTIONS(blink::MemoryCacheLRUList); 125 WTF_ALLOW_MOVE_INIT_AND_COMPARE_WITH_MEM_FUNCTIONS(blink::MemoryCacheLRUList);
126 126
127 namespace blink { 127 namespace blink {
128 128
129 class MemoryCache FINAL : public NoBaseWillBeGarbageCollectedFinalized<MemoryCac he>, public WebThread::TaskObserver { 129 class MemoryCache FINAL : public NoBaseWillBeGarbageCollectedFinalized<MemoryCac he>, public WebThread::TaskObserver {
130 WTF_MAKE_NONCOPYABLE(MemoryCache); WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED; 130 WTF_MAKE_NONCOPYABLE(MemoryCache); WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED;
131 public: 131 public:
132 static PassOwnPtrWillBeRawPtr<MemoryCache> create(); 132 static PassOwnPtrWillBeRawPtr<MemoryCache> create();
133 ~MemoryCache(); 133 ~MemoryCache();
134 void trace(Visitor*); 134 virtual void trace(Visitor*);
135 135
136 struct TypeStatistic { 136 struct TypeStatistic {
137 int count; 137 int count;
138 int size; 138 int size;
139 int liveSize; 139 int liveSize;
140 int decodedSize; 140 int decodedSize;
141 int encodedSize; 141 int encodedSize;
142 int encodedSizeDuplicatedInDataURLs; 142 int encodedSizeDuplicatedInDataURLs;
143 int purgeableSize; 143 int purgeableSize;
144 int purgedSize; 144 int purgedSize;
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
297 // Returns the global cache. 297 // Returns the global cache.
298 MemoryCache* memoryCache(); 298 MemoryCache* memoryCache();
299 299
300 // Sets the global cache, used to swap in a test instance. Returns the old 300 // Sets the global cache, used to swap in a test instance. Returns the old
301 // MemoryCache object. 301 // MemoryCache object.
302 PassOwnPtrWillBeRawPtr<MemoryCache> replaceMemoryCacheForTesting(PassOwnPtrWillB eRawPtr<MemoryCache>); 302 PassOwnPtrWillBeRawPtr<MemoryCache> replaceMemoryCacheForTesting(PassOwnPtrWillB eRawPtr<MemoryCache>);
303 303
304 } 304 }
305 305
306 #endif 306 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698