Chromium Code Reviews| Index: Source/core/workers/WorkerConsole.h |
| diff --git a/Source/core/workers/WorkerConsole.h b/Source/core/workers/WorkerConsole.h |
| index a2ef40d2042cdc7696932104c27853836dd107d8..23a2d9420f7c59ce1f7d29f7f8c90382b0a21d4c 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,20 @@ namespace WebCore { |
| class ScriptArguments; |
| -class WorkerConsole FINAL : public RefCounted<WorkerConsole>, public ConsoleBase, public ScriptWrappable { |
| +class WorkerConsole FINAL : public RefCountedWillBeRefCountedGarbageCollected<WorkerConsole>, public ConsoleBase, public ScriptWrappable { |
| + DECLARE_GC_INFO; |
| public: |
| - using RefCounted<WorkerConsole>::ref; |
| - using RefCounted<WorkerConsole>::deref; |
| + using RefCountedWillBeRefCountedGarbageCollected<WorkerConsole>::ref; |
|
haraken
2014/02/24 13:28:36
Probably can you use:
#if ENABLE(OILPAN)
using
sof
2014/02/24 22:44:27
If I understand you correctly, not until we can re
|
| + using RefCountedWillBeRefCountedGarbageCollected<WorkerConsole>::deref; |
| - static PassRefPtr<WorkerConsole> create(WorkerGlobalScope* scope) { return adoptRef(new WorkerConsole(scope)); } |
| + static PassRefPtrWillBeRawPtr<WorkerConsole> create(WorkerGlobalScope* scope) |
| + { |
| + return adoptRefCountedWillBeRefCountedGarbageCollected(new WorkerConsole(scope)); |
| + } |
| virtual ~WorkerConsole(); |
| + void trace(Visitor*) { } |
| + |
| protected: |
| virtual ExecutionContext* context() OVERRIDE; |
| virtual void reportMessageToClient(MessageLevel, const String& message, PassRefPtr<ScriptCallStack>) OVERRIDE; |