Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / Source / modules / performance / WorkerPerformance.h
index 3f45040..e7ab235 100644 (file)
@@ -33,6 +33,7 @@
 
 #include "bindings/v8/ScriptWrappable.h"
 #include "core/dom/ContextLifecycleObserver.h"
+#include "platform/heap/Handle.h"
 #include "wtf/PassRefPtr.h"
 #include "wtf/RefCounted.h"
 #include "wtf/RefPtr.h"
 namespace WebCore {
 
 class ExecutionContext;
+class MemoryInfo;
 
-class WorkerPerformance : public ScriptWrappable, public RefCounted<WorkerPerformance> {
+class WorkerPerformance : public GarbageCollectedFinalized<WorkerPerformance>, public ScriptWrappable {
 public:
-    static PassRefPtr<WorkerPerformance> create() { return adoptRef(new WorkerPerformance()); }
+    static WorkerPerformance* create()
+    {
+        return new WorkerPerformance();
+    }
     ~WorkerPerformance();
 
     double now(ExecutionContext*) const;
+    PassRefPtrWillBeRawPtr<MemoryInfo> memory() const;
+
+    void trace(Visitor*) { }
 
 private:
     WorkerPerformance();