Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1759)

Unified Diff: Source/core/workers/WorkerScriptLoader.h

Issue 177073004: Oilpan: move core/workers to oilpan's heap. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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();

Powered by Google App Engine
This is Rietveld 408576698