Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / Source / core / timing / MemoryInfo.h
index 6009f5f..11bf7c3 100644 (file)
 #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; }
@@ -55,13 +54,13 @@ public:
     void trace(Visitor*) { }
 
 private:
-    explicit MemoryInfo(LocalFrame*);
+    MemoryInfo();
 
     HeapInfo m_info;
 };
 
 size_t quantizeMemorySize(size_t);
 
-} // namespace WebCore
+} // namespace blink
 
 #endif // MemoryInfo_h