| Index: Source/core/workers/WorkerScriptLoader.h
|
| diff --git a/Source/core/workers/WorkerScriptLoader.h b/Source/core/workers/WorkerScriptLoader.h
|
| index 8e64a097a2baa6cbfddcc562925ec1fc18c47018..45ffe518519638e3afded5ec55c6c8cda406b473 100644
|
| --- a/Source/core/workers/WorkerScriptLoader.h
|
| +++ b/Source/core/workers/WorkerScriptLoader.h
|
| @@ -30,6 +30,7 @@
|
|
|
| #include "core/loader/ThreadableLoader.h"
|
| #include "core/loader/ThreadableLoaderClient.h"
|
| +#include "heap/Handle.h"
|
| #include "platform/network/ResourceRequest.h"
|
| #include "platform/weborigin/KURL.h"
|
| #include "wtf/FastAllocBase.h"
|
| @@ -45,12 +46,13 @@ namespace WebCore {
|
| class TextResourceDecoder;
|
| class WorkerScriptLoaderClient;
|
|
|
| - class WorkerScriptLoader FINAL : public RefCounted<WorkerScriptLoader>, public ThreadableLoaderClient {
|
| - WTF_MAKE_FAST_ALLOCATED;
|
| + class WorkerScriptLoader FINAL : public RefCountedWillBeGarbageCollectedFinalized<WorkerScriptLoader>, public ThreadableLoaderClient {
|
| + WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED;
|
| + DECLARE_GC_INFO;
|
| public:
|
| - static PassRefPtr<WorkerScriptLoader> create()
|
| + static PassRefPtrWillBeRawPtr<WorkerScriptLoader> create()
|
| {
|
| - return adoptRef(new WorkerScriptLoader());
|
| + return adoptRefWillBeNoop(new WorkerScriptLoader());
|
| }
|
|
|
| void loadSynchronously(ExecutionContext*, const KURL&, CrossOriginRequestPolicy);
|
| @@ -78,8 +80,10 @@ namespace WebCore {
|
|
|
| void setTargetType(ResourceRequest::TargetType targetType) { m_targetType = targetType; }
|
|
|
| + void trace(Visitor*) { }
|
| +
|
| private:
|
| - friend class WTF::RefCounted<WorkerScriptLoader>;
|
| + friend class RefCountedWillBeGarbageCollectedFinalized<WorkerScriptLoader>;
|
|
|
| WorkerScriptLoader();
|
| virtual ~WorkerScriptLoader();
|
|
|