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

Unified Diff: Source/modules/notifications/WorkerGlobalScopeNotifications.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/notifications/WorkerGlobalScopeNotifications.h
diff --git a/Source/modules/notifications/WorkerGlobalScopeNotifications.h b/Source/modules/notifications/WorkerGlobalScopeNotifications.h
index d62d35887a0876ac7400714dfeb7fdb3d85885a1..b27e2444f2762680759ca9fd479f56dfd0d0a4fd 100644
--- a/Source/modules/notifications/WorkerGlobalScopeNotifications.h
+++ b/Source/modules/notifications/WorkerGlobalScopeNotifications.h
@@ -29,8 +29,8 @@
#if ENABLE(LEGACY_NOTIFICATIONS)
-#include "core/workers/WorkerSupplementable.h"
#include "heap/Handle.h"
+#include "platform/Supplementable.h"
namespace WebCore {
@@ -38,21 +38,24 @@ class NotificationCenter;
class ExecutionContext;
class WorkerGlobalScope;
-class WorkerGlobalScopeNotifications FINAL : public WorkerSupplement {
+class WorkerGlobalScopeNotifications FINAL : public NoBaseWillBeGarbageCollected<WorkerGlobalScopeNotifications>, public WillBeHeapSupplement<WorkerGlobalScope> {
+ WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(WorkerGlobalScopeNotifications);
public:
virtual ~WorkerGlobalScopeNotifications();
static NotificationCenter* webkitNotifications(WorkerGlobalScope&);
static WorkerGlobalScopeNotifications& from(WorkerGlobalScope&);
+ virtual void trace(Visitor*);
+
private:
- explicit WorkerGlobalScopeNotifications(WorkerGlobalScope&);
+ explicit WorkerGlobalScopeNotifications(WorkerGlobalScope*);
NotificationCenter* webkitNotifications();
static const char* supplementName();
- WorkerGlobalScope& m_context;
- RefPtrWillBePersistent<NotificationCenter> m_notificationCenter;
+ RawPtrWillBeMember<WorkerGlobalScope> m_context;
+ RefPtrWillBeMember<NotificationCenter> m_notificationCenter;
};
} // namespace WebCore

Powered by Google App Engine
This is Rietveld 408576698