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

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: Remove redundant include Created 6 years, 10 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..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

Powered by Google App Engine
This is Rietveld 408576698