Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / Source / core / timing / MemoryInfo.h
index 59629a4..172d34c 100644 (file)
 #ifndef MemoryInfo_h
 #define MemoryInfo_h
 
-#include "bindings/v8/ScriptGCEvent.h"
-#include "bindings/v8/ScriptWrappable.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 Frame;
-
-class MemoryInfo : public RefCounted<MemoryInfo>, public ScriptWrappable {
+class MemoryInfo final : public RefCountedWillBeGarbageCollected<MemoryInfo>, public ScriptWrappable {
+    DEFINE_WRAPPERTYPEINFO();
 public:
-    static PassRefPtr<MemoryInfo> create(Frame* frame) { return adoptRef(new MemoryInfo(frame)); }
+    static PassRefPtrWillBeRawPtr<MemoryInfo> create()
+    {
+        return adoptRefWillBeNoop(new MemoryInfo());
+    }
 
     size_t totalJSHeapSize() const { return m_info.totalJSHeapSize; }
     size_t usedJSHeapSize() const { return m_info.usedJSHeapSize; }
     size_t jsHeapSizeLimit() const { return m_info.jsHeapSizeLimit; }
 
+    void trace(Visitor*) { }
+
 private:
-    explicit MemoryInfo(Frame*);
+    MemoryInfo();
 
     HeapInfo m_info;
 };
 
 size_t quantizeMemorySize(size_t);
 
-} // namespace WebCore
+} // namespace blink
 
 #endif // MemoryInfo_h