Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / Source / core / html / track / vtt / VTTRegionList.h
index 35e1b8e..edb87d6 100644 (file)
 
 namespace WebCore {
 
-class VTTRegionList : public RefCounted<VTTRegionList> {
+class VTTRegionList FINAL : public RefCountedWillBeGarbageCollected<VTTRegionList> {
 public:
-    static PassRefPtr<VTTRegionList> create()
+    static PassRefPtrWillBeRawPtr<VTTRegionList> create()
     {
-        return adoptRef(new VTTRegionList());
+        return adoptRefWillBeNoop(new VTTRegionList());
     }
 
-    ~VTTRegionList() { }
-
     unsigned long length() const;
 
     VTTRegion* item(unsigned index) const;
     VTTRegion* getRegionById(const String&) const;
 
-    void add(PassRefPtr<VTTRegion>);
+    void add(PassRefPtrWillBeRawPtr<VTTRegion>);
     bool remove(VTTRegion*);
 
+    void trace(Visitor*);
+
 private:
     VTTRegionList();
-    void clear();
 
-    Vector<RefPtr<VTTRegion> > m_list;
+    WillBeHeapVector<RefPtrWillBeMember<VTTRegion> > m_list;
 };
 
 } // namespace WebCore