#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();