Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1778)

Unified Diff: Source/modules/speech/SpeechRecognitionResultList.h

Issue 139803012: Move speech module over to Oilpan. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Make SpeechSynthesisVoice GC-finalized Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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

Powered by Google App Engine
This is Rietveld 408576698