summaryrefslogtreecommitdiff
path: root/Source/WebCore/page/PerformanceNavigation.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/page/PerformanceNavigation.h')
-rw-r--r--Source/WebCore/page/PerformanceNavigation.h12
1 files changed, 5 insertions, 7 deletions
diff --git a/Source/WebCore/page/PerformanceNavigation.h b/Source/WebCore/page/PerformanceNavigation.h
index f397923e6..3d572439b 100644
--- a/Source/WebCore/page/PerformanceNavigation.h
+++ b/Source/WebCore/page/PerformanceNavigation.h
@@ -28,14 +28,13 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef PerformanceNavigation_h
-#define PerformanceNavigation_h
+#pragma once
#if ENABLE(WEB_TIMING)
#include "DOMWindowProperty.h"
-#include <wtf/PassRefPtr.h>
#include <wtf/RefCounted.h>
+#include <wtf/Ref.h>
namespace WebCore {
@@ -43,7 +42,7 @@ class Frame;
class PerformanceNavigation : public RefCounted<PerformanceNavigation>, public DOMWindowProperty {
public:
- static PassRefPtr<PerformanceNavigation> create(Frame* frame) { return adoptRef(new PerformanceNavigation(frame)); }
+ static Ref<PerformanceNavigation> create(Frame* frame) { return adoptRef(*new PerformanceNavigation(frame)); }
enum PerformanceNavigationType {
TYPE_NAVIGATE,
@@ -59,7 +58,6 @@ private:
explicit PerformanceNavigation(Frame*);
};
-}
+} // namespace WebCore
-#endif // !ENABLE(WEB_TIMING)
-#endif // !defined(PerformanceNavigation_h)
+#endif // ENABLE(WEB_TIMING)