diff options
Diffstat (limited to 'chromium/third_party/WebKit/Source/core/testing/MallocStatistics.h')
-rw-r--r-- | chromium/third_party/WebKit/Source/core/testing/MallocStatistics.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/chromium/third_party/WebKit/Source/core/testing/MallocStatistics.h b/chromium/third_party/WebKit/Source/core/testing/MallocStatistics.h index bc4da8562ca..f697b0582c8 100644 --- a/chromium/third_party/WebKit/Source/core/testing/MallocStatistics.h +++ b/chromium/third_party/WebKit/Source/core/testing/MallocStatistics.h @@ -26,20 +26,26 @@ #ifndef MallocStatistics_h #define MallocStatistics_h +#include "platform/heap/Handle.h" #include "wtf/FastMalloc.h" #include "wtf/PassRefPtr.h" #include "wtf/RefCounted.h" namespace WebCore { -class MallocStatistics : public RefCounted<MallocStatistics> { +class MallocStatistics : public RefCountedWillBeGarbageCollected<MallocStatistics> { public: - static PassRefPtr<MallocStatistics> create() { return adoptRef(new MallocStatistics()); } + static PassRefPtrWillBeRawPtr<MallocStatistics> create() + { + return adoptRefWillBeNoop(new MallocStatistics()); + } size_t reservedVMBytes() const { return m_stats.reservedVMBytes; } size_t committedVMBytes() const { return m_stats.committedVMBytes; } size_t freeListBytes() const { return m_stats.freeListBytes; } + void trace(Visitor*) { } + private: MallocStatistics() { |