Index: Source/modules/speech/SpeechGrammarList.h |
diff --git a/Source/modules/speech/SpeechGrammarList.h b/Source/modules/speech/SpeechGrammarList.h |
index 5f877d9f9708a13a233c24ce81d47b5f19197bfb..87201f2dde752648c0bdda5b3d44eedf3cf5b698 100644 |
--- a/Source/modules/speech/SpeechGrammarList.h |
+++ b/Source/modules/speech/SpeechGrammarList.h |
@@ -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; |
+ Vector<RefPtrWillBeMember<SpeechGrammar> > m_grammars; |
haraken
2014/02/12 05:18:45
This works, but we want to use WillBeHeapVector<Re
sof
2014/02/12 07:48:51
Ah, I didn't see
https://codereview.chromium.o
|
}; |
} // namespace WebCore |