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

Unified Diff: Source/modules/performance/WorkerGlobalScopePerformance.h

Issue 178663004: Oilpan: move WorkerGlobalScope to oilpan's heap. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebased Created 6 years, 9 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
Index: Source/modules/performance/WorkerGlobalScopePerformance.h
diff --git a/Source/modules/performance/WorkerGlobalScopePerformance.h b/Source/modules/performance/WorkerGlobalScopePerformance.h
index ee125329f763c0c9aa4a6da1cc902416d720c46f..e84ae20256f1326ea7a31b698c68e7c594fd3a74 100644
--- a/Source/modules/performance/WorkerGlobalScopePerformance.h
+++ b/Source/modules/performance/WorkerGlobalScopePerformance.h
@@ -31,26 +31,31 @@
#ifndef WorkerGlobalScopePerformance_h
#define WorkerGlobalScopePerformance_h
-#include "core/workers/WorkerSupplementable.h"
#include "heap/Handle.h"
#include "modules/performance/WorkerPerformance.h"
+#include "platform/Supplementable.h"
namespace WebCore {
-class WorkerGlobalScopePerformance FINAL : public WorkerSupplement {
+class WorkerGlobalScope;
+
+class WorkerGlobalScopePerformance FINAL : public NoBaseWillBeGarbageCollected<WorkerGlobalScopePerformance>, public WillBeHeapSupplement<WorkerGlobalScope> {
+ WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(WorkerGlobalScopePerformance);
public:
virtual ~WorkerGlobalScopePerformance();
static WorkerGlobalScopePerformance& from(WorkerGlobalScope&);
static WorkerPerformance* performance(WorkerGlobalScope&);
+ virtual void trace(Visitor*);
+
private:
WorkerGlobalScopePerformance();
WorkerPerformance* performance();
static const char* supplementName();
- RefPtrWillBePersistent<WorkerPerformance> m_performance;
+ RefPtrWillBeMember<WorkerPerformance> m_performance;
};
} // namespace WebCore

Powered by Google App Engine
This is Rietveld 408576698