#ifndef MemoryInfo_h
#define MemoryInfo_h
-#include "bindings/v8/ScriptGCEvent.h"
-#include "bindings/v8/ScriptWrappable.h"
-#include "heap/Handle.h"
+#include "bindings/core/v8/ScriptGCEvent.h"
+#include "bindings/core/v8/ScriptWrappable.h"
+#include "platform/heap/Handle.h"
#include "wtf/PassRefPtr.h"
#include "wtf/RefCounted.h"
-namespace WebCore {
+namespace blink {
-class LocalFrame;
-
-class MemoryInfo : public RefCountedWillBeGarbageCollectedFinalized<MemoryInfo>, public ScriptWrappable {
+class MemoryInfo FINAL : public RefCountedWillBeGarbageCollected<MemoryInfo>, public ScriptWrappable {
+ DEFINE_WRAPPERTYPEINFO();
public:
- static PassRefPtrWillBeRawPtr<MemoryInfo> create(LocalFrame* frame)
+ static PassRefPtrWillBeRawPtr<MemoryInfo> create()
{
- return adoptRefWillBeNoop(new MemoryInfo(frame));
+ return adoptRefWillBeNoop(new MemoryInfo());
}
size_t totalJSHeapSize() const { return m_info.totalJSHeapSize; }
void trace(Visitor*) { }
private:
- explicit MemoryInfo(LocalFrame*);
+ MemoryInfo();
HeapInfo m_info;
};
size_t quantizeMemorySize(size_t);
-} // namespace WebCore
+} // namespace blink
#endif // MemoryInfo_h