Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / Source / core / workers / WorkerClients.h
index 8cc4aa2..e81e928 100644 (file)
@@ -39,16 +39,22 @@ namespace WebCore {
 // 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() { }
 };