Index: Source/modules/battery/BatteryManager.h |
diff --git a/Source/modules/battery/BatteryManager.h b/Source/modules/battery/BatteryManager.h |
index 8e587d86a417eaddcdb51bbe5543ed9372f8c700..4df04971940bb785332356180875e59d4c6b5e2f 100644 |
--- a/Source/modules/battery/BatteryManager.h |
+++ b/Source/modules/battery/BatteryManager.h |
@@ -8,17 +8,18 @@ |
#include "core/dom/ContextLifecycleObserver.h" |
#include "core/dom/Document.h" |
#include "core/events/EventTarget.h" |
+#include "heap/Handle.h" |
#include "modules/battery/BatteryStatus.h" |
namespace WebCore { |
class Navigator; |
-class BatteryManager FINAL : public ContextLifecycleObserver, public RefCounted<BatteryManager>, public EventTargetWithInlineData { |
- REFCOUNTED_EVENT_TARGET(BatteryManager); |
+class BatteryManager FINAL : public RefCountedWillBeRefCountedGarbageCollected<BatteryManager>, public ContextLifecycleObserver, public EventTargetWithInlineData { |
+ DEFINE_EVENT_TARGET_REFCOUNTING(RefCountedWillBeRefCountedGarbageCollected<BatteryManager>); |
public: |
virtual ~BatteryManager(); |
- static PassRefPtr<BatteryManager> create(ExecutionContext*); |
+ static PassRefPtrWillBeRawPtr<BatteryManager> create(ExecutionContext*); |
// EventTarget implementation. |
virtual const WTF::AtomicString& interfaceName() const OVERRIDE { return EventTargetNames::BatteryManager; } |
@@ -36,6 +37,8 @@ public: |
void didChangeBatteryStatus(PassRefPtr<Event>, PassOwnPtr<BatteryStatus>); |
+ void trace(Visitor*) { } |
+ |
private: |
explicit BatteryManager(ExecutionContext*); |