Index: Source/modules/push_messaging/PushManager.h |
diff --git a/Source/modules/push_messaging/PushManager.h b/Source/modules/push_messaging/PushManager.h |
index c196af78f48abad369cd78c8513630fece5c4030..30622aba04e94a797c88cfbe8a15b165794f2b4e 100644 |
--- a/Source/modules/push_messaging/PushManager.h |
+++ b/Source/modules/push_messaging/PushManager.h |
@@ -6,6 +6,7 @@ |
#define PushManager_h |
#include "bindings/v8/ScriptWrappable.h" |
+#include "heap/Handle.h" |
#include "wtf/RefCounted.h" |
#include "wtf/text/WTFString.h" |
@@ -14,13 +15,18 @@ namespace WebCore { |
class ExecutionContext; |
class ScriptPromise; |
-class PushManager FINAL : public RefCountedWillBeRefCountedGarbageCollected<PushManager>, public ScriptWrappable { |
+class PushManager FINAL : public RefCountedWillBeGarbageCollectedFinalized<PushManager>, public ScriptWrappable { |
Peter Beverloo
2014/03/31 19:08:07
Could you confirm my understanding of this change?
sof
2014/03/31 19:32:40
Yes, an event target will have to be kept alive fo
|
public: |
- static PassRefPtrWillBeRawPtr<PushManager> create() { return adoptRefWillBeNoop(new PushManager()); } |
+ static PassRefPtrWillBeRawPtr<PushManager> create() |
+ { |
+ return adoptRefWillBeNoop(new PushManager()); |
+ } |
virtual ~PushManager(); |
ScriptPromise registerPushMessaging(ExecutionContext*, const String& senderId); |
+ void trace(Visitor*) { } |
+ |
private: |
PushManager(); |
}; |