// This is created on the main thread, passed to the worker thread and
// attached to WorkerGlobalScope when it is created.
// This class can be used to provide "client" implementations to Workers.
-class WorkerClients : public Supplementable<WorkerClients> {
+class WorkerClients : public NoBaseWillBeGarbageCollectedFinalized<WorkerClients>, public WillBeHeapSupplementable<WorkerClients> {
+ WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(WorkerClients);
WTF_MAKE_NONCOPYABLE(WorkerClients);
public:
- static PassOwnPtr<WorkerClients> create()
+ static PassOwnPtrWillBeRawPtr<WorkerClients> create()
{
- return adoptPtr(new WorkerClients());
+ return adoptPtrWillBeNoop(new WorkerClients());
}
virtual ~WorkerClients() { }
+ virtual void trace(Visitor* visitor) OVERRIDE
+ {
+ WillBeHeapSupplementable<WorkerClients>::trace(visitor);
+ }
+
private:
WorkerClients() { }
};