| Index: Source/modules/speech/SpeechRecognitionResultList.h
|
| diff --git a/Source/modules/speech/SpeechRecognitionResultList.h b/Source/modules/speech/SpeechRecognitionResultList.h
|
| index 24ca14720cb88ef0058db9c62b2c08bc3f3842e2..f209370a86c575959f731cca1c78dd33d294bcbc 100644
|
| --- a/Source/modules/speech/SpeechRecognitionResultList.h
|
| +++ b/Source/modules/speech/SpeechRecognitionResultList.h
|
| @@ -27,23 +27,27 @@
|
| #define SpeechRecognitionResultList_h
|
|
|
| #include "bindings/v8/ScriptWrappable.h"
|
| +#include "heap/Handle.h"
|
| #include "modules/speech/SpeechRecognitionResult.h"
|
| #include "wtf/RefCounted.h"
|
| #include "wtf/Vector.h"
|
|
|
| namespace WebCore {
|
|
|
| -class SpeechRecognitionResultList : public ScriptWrappable, public RefCounted<SpeechRecognitionResultList> {
|
| +class SpeechRecognitionResultList : public RefCountedWillBeGarbageCollectedFinalized<SpeechRecognitionResultList>, public ScriptWrappable {
|
| + DECLARE_GC_INFO;
|
| public:
|
| - static PassRefPtr<SpeechRecognitionResultList> create(const Vector<RefPtr<SpeechRecognitionResult> >&);
|
| + static PassRefPtrWillBeRawPtr<SpeechRecognitionResultList> create(const Vector<RefPtr<SpeechRecognitionResult> >&);
|
|
|
| unsigned long length() { return m_results.size(); }
|
| SpeechRecognitionResult* item(unsigned long index);
|
|
|
| + void trace(Visitor*);
|
| +
|
| private:
|
| explicit SpeechRecognitionResultList(const Vector<RefPtr<SpeechRecognitionResult> >&);
|
|
|
| - Vector<RefPtr<SpeechRecognitionResult> > m_results;
|
| + WillBeHeapVector<RefPtrWillBeMember<SpeechRecognitionResult> > m_results;
|
| };
|
|
|
| } // namespace WebCore
|
|
|