Index: Source/core/workers/WorkerThreadStartupData.h |
diff --git a/Source/core/workers/WorkerThreadStartupData.h b/Source/core/workers/WorkerThreadStartupData.h |
index c62a83052fa4b7ef6739079aedbb3b012abe6ae5..87befaf94ebe6839dc88681cbbf84970adfc9de2 100644 |
--- a/Source/core/workers/WorkerThreadStartupData.h |
+++ b/Source/core/workers/WorkerThreadStartupData.h |
@@ -43,12 +43,13 @@ namespace WebCore { |
class WorkerClients; |
-struct WorkerThreadStartupData { |
- WTF_MAKE_NONCOPYABLE(WorkerThreadStartupData); WTF_MAKE_FAST_ALLOCATED; |
+class WorkerThreadStartupData : public NoBaseWillBeGarbageCollectedFinalized<WorkerThreadStartupData> { |
+ WTF_MAKE_NONCOPYABLE(WorkerThreadStartupData); |
+ WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED; |
public: |
- static PassOwnPtr<WorkerThreadStartupData> create(const KURL& scriptURL, const String& userAgent, const String& sourceCode, WorkerThreadStartMode startMode, const String& contentSecurityPolicy, ContentSecurityPolicyHeaderType contentSecurityPolicyType, PassOwnPtr<WorkerClients> workerClients) |
+ static PassOwnPtrWillBeRawPtr<WorkerThreadStartupData> create(const KURL& scriptURL, const String& userAgent, const String& sourceCode, WorkerThreadStartMode startMode, const String& contentSecurityPolicy, ContentSecurityPolicyHeaderType 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(); |
@@ -61,6 +62,8 @@ public: |
ContentSecurityPolicyHeaderType m_contentSecurityPolicyType; |
OwnPtr<WorkerClients> m_workerClients; |
+ void trace(Visitor*) { } |
+ |
private: |
WorkerThreadStartupData(const KURL& scriptURL, const String& userAgent, const String& sourceCode, WorkerThreadStartMode, const String& contentSecurityPolicy, ContentSecurityPolicyHeaderType contentSecurityPolicyType, PassOwnPtr<WorkerClients>); |
}; |