Index: Source/core/workers/WorkerNavigator.h |
diff --git a/Source/core/workers/WorkerNavigator.h b/Source/core/workers/WorkerNavigator.h |
index 850d706ba9b9bb6c03f858f37f9998bfc265245a..37e6f39932f8a2d4b5fcf76b10a9426ffbad98a0 100644 |
--- a/Source/core/workers/WorkerNavigator.h |
+++ b/Source/core/workers/WorkerNavigator.h |
@@ -28,6 +28,7 @@ |
#include "bindings/v8/ScriptWrappable.h" |
#include "core/frame/NavigatorBase.h" |
+#include "heap/Handle.h" |
#include "platform/Supplementable.h" |
#include "wtf/PassRefPtr.h" |
#include "wtf/RefCounted.h" |
@@ -35,13 +36,19 @@ |
namespace WebCore { |
-class WorkerNavigator FINAL : public RefCounted<WorkerNavigator>, public ScriptWrappable, public NavigatorBase, public Supplementable<WorkerNavigator> { |
+class WorkerNavigator FINAL : public RefCountedWillBeGarbageCollectedFinalized<WorkerNavigator>, public ScriptWrappable, public NavigatorBase, public Supplementable<WorkerNavigator> { |
+ DECLARE_GC_INFO; |
public: |
- static PassRefPtr<WorkerNavigator> create(const String& userAgent) { return adoptRef(new WorkerNavigator(userAgent)); } |
+ static PassRefPtrWillBeRawPtr<WorkerNavigator> create(const String& userAgent) |
+ { |
+ return adoptRefWillBeNoop(new WorkerNavigator(userAgent)); |
+ } |
virtual ~WorkerNavigator(); |
virtual String userAgent() const OVERRIDE; |
+ void trace(Visitor*) { } |
+ |
private: |
explicit WorkerNavigator(const String&); |