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

Unified Diff: Source/modules/notifications/NotificationController.h

Issue 323873007: Oilpan: Make LocalFrame PersistentHeapSupplementable and use transition types for its supplements. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: non-oilpan build Created 6 years, 6 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/NotificationController.h
diff --git a/Source/modules/notifications/NotificationController.h b/Source/modules/notifications/NotificationController.h
index 52e22bf90536002ba78d17ab187c6005358a265d..22eea093e9e330d1d6982c5f7082d96a23aa4810 100644
--- a/Source/modules/notifications/NotificationController.h
+++ b/Source/modules/notifications/NotificationController.h
@@ -34,17 +34,18 @@ namespace WebCore {
class NotificationClient;
-class NotificationController FINAL : public Supplement<LocalFrame> {
+class NotificationController FINAL : public NoBaseWillBeGarbageCollectedFinalized<NotificationController>, public WillBeHeapSupplement<LocalFrame> {
+ WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(NotificationController);
WTF_MAKE_NONCOPYABLE(NotificationController);
public:
virtual ~NotificationController();
- static PassOwnPtr<NotificationController> create(PassOwnPtr<NotificationClient>);
+ static PassOwnPtrWillBeRawPtr<NotificationController> create(PassOwnPtr<NotificationClient>);
static const char* supplementName();
- static NotificationController* from(LocalFrame* frame) { return static_cast<NotificationController*>(Supplement<LocalFrame>::from(frame, supplementName())); }
+ static NotificationController* from(LocalFrame* frame) { return static_cast<NotificationController*>(WillBeHeapSupplement<LocalFrame>::from(frame, supplementName())); }
static NotificationClient& clientFrom(LocalFrame*);
- virtual void trace(Visitor* visitor) OVERRIDE { Supplement<LocalFrame>::trace(visitor); }
+ virtual void trace(Visitor* visitor) OVERRIDE { WillBeHeapSupplement<LocalFrame>::trace(visitor); }
private:
explicit NotificationController(PassOwnPtr<NotificationClient>);
« no previous file with comments | « Source/modules/mediastream/UserMediaController.cpp ('k') | Source/modules/notifications/NotificationController.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698