#ifndef PerformanceNavigation_h
#define PerformanceNavigation_h
-#include "bindings/v8/ScriptWrappable.h"
+#include "bindings/core/v8/ScriptWrappable.h"
#include "core/frame/DOMWindowProperty.h"
+#include "platform/heap/Handle.h"
#include "wtf/PassRefPtr.h"
#include "wtf/RefCounted.h"
-namespace WebCore {
+namespace blink {
-class Frame;
+class LocalFrame;
-class PerformanceNavigation : public RefCounted<PerformanceNavigation>, public ScriptWrappable, public DOMWindowProperty {
+class PerformanceNavigation FINAL : public RefCountedWillBeGarbageCollected<PerformanceNavigation>, public ScriptWrappable, public DOMWindowProperty {
+ DEFINE_WRAPPERTYPEINFO();
+ WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(PerformanceNavigation);
public:
- static PassRefPtr<PerformanceNavigation> create(Frame* frame) { return adoptRef(new PerformanceNavigation(frame)); }
+ static PassRefPtrWillBeRawPtr<PerformanceNavigation> create(LocalFrame* frame)
+ {
+ return adoptRefWillBeNoop(new PerformanceNavigation(frame));
+ }
enum PerformanceNavigationType {
TYPE_NAVIGATE,
unsigned short type() const;
unsigned short redirectCount() const;
+ virtual void trace(Visitor*) OVERRIDE;
+
private:
- explicit PerformanceNavigation(Frame*);
+ explicit PerformanceNavigation(LocalFrame*);
};
-}
+} // namespace blink
-#endif // !defined(PerformanceNavigation_h)
+#endif // PerformanceNavigation_h