Index: Source/core/workers/WorkerConsole.h |
diff --git a/Source/core/workers/WorkerConsole.h b/Source/core/workers/WorkerConsole.h |
index a2ef40d2042cdc7696932104c27853836dd107d8..8a644c6aff39276c0c157387ac27c0f9ee667157 100644 |
--- a/Source/core/workers/WorkerConsole.h |
+++ b/Source/core/workers/WorkerConsole.h |
@@ -34,6 +34,7 @@ |
#include "core/inspector/ConsoleAPITypes.h" |
#include "core/frame/ConsoleBase.h" |
#include "core/frame/ConsoleTypes.h" |
+#include "heap/Handle.h" |
#include "wtf/PassRefPtr.h" |
#include "wtf/RefCounted.h" |
#include "wtf/RefPtr.h" |
@@ -43,14 +44,19 @@ namespace WebCore { |
class ScriptArguments; |
-class WorkerConsole FINAL : public RefCounted<WorkerConsole>, public ConsoleBase, public ScriptWrappable { |
+class WorkerConsole FINAL : public RefCountedWillBeRefCountedGarbageCollected<WorkerConsole>, public ConsoleBase, public ScriptWrappable { |
public: |
- using RefCounted<WorkerConsole>::ref; |
- using RefCounted<WorkerConsole>::deref; |
+ using RefCountedWillBeRefCountedGarbageCollected<WorkerConsole>::ref; |
+ using RefCountedWillBeRefCountedGarbageCollected<WorkerConsole>::deref; |
- static PassRefPtr<WorkerConsole> create(WorkerGlobalScope* scope) { return adoptRef(new WorkerConsole(scope)); } |
+ static PassRefPtrWillBeRawPtr<WorkerConsole> create(WorkerGlobalScope* scope) |
+ { |
+ return adoptRefWillBeRefCountedGarbageCollected(new WorkerConsole(scope)); |
+ } |
virtual ~WorkerConsole(); |
+ void trace(Visitor*); |
+ |
protected: |
virtual ExecutionContext* context() OVERRIDE; |
virtual void reportMessageToClient(MessageLevel, const String& message, PassRefPtr<ScriptCallStack>) OVERRIDE; |
@@ -61,7 +67,7 @@ private: |
virtual void refConsole() OVERRIDE { ref(); } |
virtual void derefConsole() OVERRIDE { deref(); } |
- WorkerGlobalScope* m_scope; |
+ RawPtrWillBeMember<WorkerGlobalScope> m_scope; |
}; |
} // namespace WebCore |