| Index: Source/core/workers/WorkerLocation.h
|
| diff --git a/Source/core/workers/WorkerLocation.h b/Source/core/workers/WorkerLocation.h
|
| index 6b5aefb7cf7323d7f356edae7040251cd4f23f0b..b36cb88e82dd5c72aa7d6ae62934abd03c29d46c 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,11 @@
|
|
|
| namespace WebCore {
|
|
|
| -class WorkerLocation FINAL : public RefCounted<WorkerLocation>, public ScriptWrappable, public DOMURLUtilsReadOnly {
|
| +class WorkerLocation FINAL : public RefCountedWillBeGarbageCollectedFinalized<WorkerLocation>, public ScriptWrappable, public DOMURLUtilsReadOnly {
|
| 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 +52,8 @@ public:
|
| return String();
|
| }
|
|
|
| + void trace(Visitor*) { }
|
| +
|
| private:
|
| explicit WorkerLocation(const KURL& url) : m_url(url)
|
| {
|
|
|