Index: Source/core/workers/WorkerThreadStartupData.h |
diff --git a/Source/core/workers/WorkerThreadStartupData.h b/Source/core/workers/WorkerThreadStartupData.h |
index c1b13d703b78729c32c75eb9c8f345c9f9523832..1204f9510f0646ee76f4c6a93690ddd08630a36f 100644 |
--- a/Source/core/workers/WorkerThreadStartupData.h |
+++ b/Source/core/workers/WorkerThreadStartupData.h |
@@ -34,6 +34,7 @@ |
#include "core/frame/ContentSecurityPolicy.h" |
#include "core/workers/WorkerClients.h" |
#include "core/workers/WorkerThread.h" |
+#include "heap/Handle.h" |
#include "platform/weborigin/KURL.h" |
#include "wtf/Forward.h" |
#include "wtf/Noncopyable.h" |
@@ -42,16 +43,20 @@ namespace WebCore { |
class WorkerClients; |
-struct WorkerThreadStartupData { |
- WTF_MAKE_NONCOPYABLE(WorkerThreadStartupData); WTF_MAKE_FAST_ALLOCATED; |
+class WorkerThreadStartupData : NoBaseWillBeGarbageCollected<WorkerThreadStartupData> { |
Mads Ager (chromium)
2014/02/24 13:27:53
This needs to be GarbageCollectedFinalized. String
|
+ WTF_MAKE_NONCOPYABLE(WorkerThreadStartupData); |
+ WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED; |
+ DECLARE_GC_INFO; |
public: |
- static PassOwnPtr<WorkerThreadStartupData> create(const KURL& scriptURL, const String& userAgent, const String& sourceCode, WorkerThreadStartMode startMode, const String& contentSecurityPolicy, ContentSecurityPolicy::HeaderType contentSecurityPolicyType, PassOwnPtr<WorkerClients> workerClients) |
+ static PassOwnPtrWillBeRawPtr<WorkerThreadStartupData> create(const KURL& scriptURL, const String& userAgent, const String& sourceCode, WorkerThreadStartMode startMode, const String& contentSecurityPolicy, ContentSecurityPolicy::HeaderType contentSecurityPolicyType, PassOwnPtr<WorkerClients> workerClients) |
{ |
- return adoptPtr(new WorkerThreadStartupData(scriptURL, userAgent, sourceCode, startMode, contentSecurityPolicy, contentSecurityPolicyType, workerClients)); |
+ return adoptPtrWillBeNoop(new WorkerThreadStartupData(scriptURL, userAgent, sourceCode, startMode, contentSecurityPolicy, contentSecurityPolicyType, workerClients)); |
} |
~WorkerThreadStartupData(); |
+ void trace(Visitor*) { } |
+ |
KURL m_scriptURL; |
String m_userAgent; |
String m_sourceCode; |