Index: Source/core/workers/WorkerLocation.h |
diff --git a/Source/core/workers/WorkerLocation.h b/Source/core/workers/WorkerLocation.h |
index 6b5aefb7cf7323d7f356edae7040251cd4f23f0b..8e557f4151ed4d89fcbd650708bea7ac819f57f3 100644 |
--- a/Source/core/workers/WorkerLocation.h |
+++ b/Source/core/workers/WorkerLocation.h |
@@ -29,6 +29,7 @@ |
#include "bindings/v8/ScriptWrappable.h" |
#include "core/dom/DOMURLUtilsReadOnly.h" |
+#include "heap/Handle.h" |
#include "platform/weborigin/KURL.h" |
#include "wtf/PassRefPtr.h" |
#include "wtf/RefCounted.h" |
@@ -37,11 +38,12 @@ |
namespace WebCore { |
-class WorkerLocation FINAL : public RefCounted<WorkerLocation>, public ScriptWrappable, public DOMURLUtilsReadOnly { |
+class WorkerLocation FINAL : public RefCountedWillBeGarbageCollectedFinalized<WorkerLocation>, public ScriptWrappable, public DOMURLUtilsReadOnly { |
+ DECLARE_GC_INFO; |
public: |
- static PassRefPtr<WorkerLocation> create(const KURL& url) |
+ static PassRefPtrWillBeRawPtr<WorkerLocation> create(const KURL& url) |
{ |
- return adoptRef(new WorkerLocation(url)); |
+ return adoptRefWillBeNoop(new WorkerLocation(url)); |
} |
virtual KURL url() const OVERRIDE { return m_url; } |
@@ -51,6 +53,8 @@ public: |
return String(); |
} |
+ void trace(Visitor*) { } |
+ |
private: |
explicit WorkerLocation(const KURL& url) : m_url(url) |
{ |