summaryrefslogtreecommitdiffstats
path: root/chromium/third_party/WebKit/Source/modules/performance/WorkerGlobalScopePerformance.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/WebKit/Source/modules/performance/WorkerGlobalScopePerformance.h')
-rw-r--r--chromium/third_party/WebKit/Source/modules/performance/WorkerGlobalScopePerformance.h20
1 files changed, 12 insertions, 8 deletions
diff --git a/chromium/third_party/WebKit/Source/modules/performance/WorkerGlobalScopePerformance.h b/chromium/third_party/WebKit/Source/modules/performance/WorkerGlobalScopePerformance.h
index 9c1a153f275..52ce9ee44a7 100644
--- a/chromium/third_party/WebKit/Source/modules/performance/WorkerGlobalScopePerformance.h
+++ b/chromium/third_party/WebKit/Source/modules/performance/WorkerGlobalScopePerformance.h
@@ -31,26 +31,30 @@
#ifndef WorkerGlobalScopePerformance_h
#define WorkerGlobalScopePerformance_h
-#include "core/workers/WorkerSupplementable.h"
+#include "modules/performance/WorkerPerformance.h"
+#include "platform/Supplementable.h"
+#include "platform/heap/Handle.h"
namespace WebCore {
-class WorkerPerformance;
+class WorkerGlobalScope;
-class WorkerGlobalScopePerformance : public WorkerSupplement {
+class WorkerGlobalScopePerformance FINAL : public NoBaseWillBeGarbageCollected<WorkerGlobalScopePerformance>, public WillBeHeapSupplement<WorkerGlobalScope> {
+ WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(WorkerGlobalScopePerformance);
public:
- virtual ~WorkerGlobalScopePerformance();
- static WorkerGlobalScopePerformance* from(WorkerGlobalScope*);
+ static WorkerGlobalScopePerformance& from(WorkerGlobalScope&);
- static WorkerPerformance* performance(WorkerGlobalScope*);
+ static WorkerPerformance* performance(WorkerGlobalScope&);
+
+ virtual void trace(Visitor*);
private:
WorkerGlobalScopePerformance();
- WorkerPerformance* getPerformance(WorkerGlobalScope*);
+ WorkerPerformance* performance();
static const char* supplementName();
- RefPtr<WorkerPerformance> m_performance;
+ PersistentWillBeMember<WorkerPerformance> m_performance;
};
} // namespace WebCore