Upstream version 5.34.104.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / Source / modules / speech / SpeechGrammarList.h
index 5f877d9..d74b81f 100644 (file)
@@ -27,6 +27,7 @@
 #define SpeechGrammarList_h
 
 #include "bindings/v8/ScriptWrappable.h"
+#include "heap/Handle.h"
 #include "modules/speech/SpeechGrammar.h"
 #include "wtf/RefCounted.h"
 #include "wtf/Vector.h"
@@ -35,9 +36,10 @@ namespace WebCore {
 
 class ExecutionContext;
 
-class SpeechGrammarList : public ScriptWrappable, public RefCounted<SpeechGrammarList> {
+class SpeechGrammarList : public RefCountedWillBeGarbageCollectedFinalized<SpeechGrammarList>, public ScriptWrappable {
+    DECLARE_GC_INFO;
 public:
-    static PassRefPtr<SpeechGrammarList> create();
+    static PassRefPtrWillBeRawPtr<SpeechGrammarList> create();
 
     unsigned long length() const { return m_grammars.size(); }
     SpeechGrammar* item(unsigned long) const;
@@ -45,10 +47,12 @@ public:
     void addFromUri(ExecutionContext*, const String& src, double weight = 1.0);
     void addFromString(const String&, double weight = 1.0);
 
+    void trace(Visitor*);
+
 private:
     SpeechGrammarList();
 
-    Vector<RefPtr<SpeechGrammar> > m_grammars;
+    WillBeHeapVector<RefPtrWillBeMember<SpeechGrammar> > m_grammars;
 };
 
 } // namespace WebCore