Chromium Code Reviews| Index: Source/modules/notifications/WorkerGlobalScopeNotifications.h |
| diff --git a/Source/modules/notifications/WorkerGlobalScopeNotifications.h b/Source/modules/notifications/WorkerGlobalScopeNotifications.h |
| index d62d35887a0876ac7400714dfeb7fdb3d85885a1..e4984b4e8dddff67773e0a708cef48a14f8297b1 100644 |
| --- a/Source/modules/notifications/WorkerGlobalScopeNotifications.h |
| +++ b/Source/modules/notifications/WorkerGlobalScopeNotifications.h |
| @@ -38,21 +38,23 @@ class NotificationCenter; |
| class ExecutionContext; |
| class WorkerGlobalScope; |
| -class WorkerGlobalScopeNotifications FINAL : public WorkerSupplement { |
| +class WorkerGlobalScopeNotifications FINAL : public NoBaseWillBeGarbageCollected<WorkerGlobalScopeNotifications>, public WorkerSupplement { |
| public: |
| virtual ~WorkerGlobalScopeNotifications(); |
| static NotificationCenter* webkitNotifications(WorkerGlobalScope&); |
| static WorkerGlobalScopeNotifications& from(WorkerGlobalScope&); |
| + virtual void trace(Visitor*); |
| + |
| private: |
| - explicit WorkerGlobalScopeNotifications(WorkerGlobalScope&); |
| + explicit WorkerGlobalScopeNotifications(RawPtr<WorkerGlobalScope>); |
|
haraken
2014/02/27 02:46:01
Can we just use a raw pointer?
sof
2014/02/27 08:50:37
Done.
|
| NotificationCenter* webkitNotifications(); |
| static const char* supplementName(); |
| - WorkerGlobalScope& m_context; |
| - RefPtrWillBePersistent<NotificationCenter> m_notificationCenter; |
| + RawPtrWillBeMember<WorkerGlobalScope> m_context; |
| + RefPtrWillBeMember<NotificationCenter> m_notificationCenter; |
| }; |
| } // namespace WebCore |