Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(47)

Unified Diff: Source/core/timing/PerformanceUserTiming.h

Issue 693483004: Enable Oilpan for core/timing/. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: de-weakify Performance::m_memoryInfo Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/timing/PerformanceTiming.idl ('k') | Source/core/timing/PerformanceUserTiming.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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)
« no previous file with comments | « Source/core/timing/PerformanceTiming.idl ('k') | Source/core/timing/PerformanceUserTiming.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698