Chromium Code Reviews| Index: Source/modules/speech/SpeechRecognitionResultList.h |
| diff --git a/Source/modules/speech/SpeechRecognitionResultList.h b/Source/modules/speech/SpeechRecognitionResultList.h |
| index 24ca14720cb88ef0058db9c62b2c08bc3f3842e2..492b68f4aa944471e94c93198e65e0c858a89e1e 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; |
| + Vector<RefPtrWillBeMember<SpeechRecognitionResult> > m_results; |
|
haraken
2014/02/12 05:18:45
WillBeHeapVector<RefPtrWillBeMember<>>.
sof
2014/02/12 10:17:09
Done.
|
| }; |
| } // namespace WebCore |