Index: Source/core/timing/PerformanceUserTiming.h |
diff --git a/Source/core/timing/PerformanceUserTiming.h b/Source/core/timing/PerformanceUserTiming.h |
index d2546cbedc99ebad82ee4c3845a4b1fc1c931ae9..6a316db980c60b9690c03142c90e38eef3876da2 100644 |
--- a/Source/core/timing/PerformanceUserTiming.h |
+++ b/Source/core/timing/PerformanceUserTiming.h |
@@ -29,10 +29,6 @@ |
#include "core/timing/Performance.h" |
#include "core/timing/PerformanceTiming.h" |
#include "platform/heap/Handle.h" |
-#include "wtf/HashMap.h" |
-#include "wtf/PassRefPtr.h" |
-#include "wtf/RefCounted.h" |
-#include "wtf/text/StringHash.h" |
#include "wtf/text/WTFString.h" |
namespace blink { |
@@ -41,13 +37,13 @@ class ExceptionState; |
class Performance; |
typedef unsigned long long (PerformanceTiming::*NavigationTimingFunction)() const; |
-using PerformanceEntryMap = WillBeHeapHashMap<String, PerformanceEntryVector>; |
+using PerformanceEntryMap = HeapHashMap<String, PerformanceEntryVector>; |
-class UserTiming : public RefCountedWillBeGarbageCollected<UserTiming> { |
+class UserTiming final : public GarbageCollected<UserTiming> { |
public: |
- static PassRefPtrWillBeRawPtr<UserTiming> create(Performance* performance) |
+ static UserTiming* create(Performance* performance) |
{ |
- return adoptRefWillBeNoop(new UserTiming(performance)); |
+ return new UserTiming(performance); |
} |
void mark(const String& markName, ExceptionState&); |
@@ -68,11 +64,12 @@ private: |
explicit UserTiming(Performance*); |
double findExistingMarkStartTime(const String& markName, ExceptionState&); |
- RawPtrWillBeMember<Performance> m_performance; |
+ |
+ Member<Performance> m_performance; |
PerformanceEntryMap m_marksMap; |
PerformanceEntryMap m_measuresMap; |
}; |
-} |
+} // namespace blink |
#endif // !defined(PerformanceUserTiming_h) |