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

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

Issue 169343002: [WIP]Add WebPrivateHeapPtr and use it for speech platform layer. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 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.cpp
diff --git a/Source/modules/speech/SpeechRecognitionResultList.cpp b/Source/modules/speech/SpeechRecognitionResultList.cpp
index 69a81c8d22c6a3bbb18c468c9581bc264b9efe39..4abd0554b02ecf4f7b00d4c5bdd4bae3f1da81f7 100644
--- a/Source/modules/speech/SpeechRecognitionResultList.cpp
+++ b/Source/modules/speech/SpeechRecognitionResultList.cpp
@@ -31,7 +31,7 @@ namespace WebCore {
DEFINE_GC_INFO(SpeechRecognitionResultList);
-PassRefPtrWillBeRawPtr<SpeechRecognitionResultList> SpeechRecognitionResultList::create(const Vector<RefPtr<SpeechRecognitionResult> >& results)
+PassRefPtrWillBeRawPtr<SpeechRecognitionResultList> SpeechRecognitionResultList::create(const WillBeHeapVector<RefPtrWillBeMember<SpeechRecognitionResult> >& results)
{
return adoptRefWillBeNoop(new SpeechRecognitionResultList(results));
}
@@ -44,17 +44,17 @@ SpeechRecognitionResult* SpeechRecognitionResultList::item(unsigned long index)
return m_results[index].get();
}
-SpeechRecognitionResultList::SpeechRecognitionResultList(const Vector<RefPtr<SpeechRecognitionResult> >& results)
-#if !ENABLE(OILPAN)
+SpeechRecognitionResultList::SpeechRecognitionResultList(const WillBeHeapVector<RefPtrWillBeMember<SpeechRecognitionResult> >& results)
: m_results(results)
-#endif
{
ScriptWrappable::init(this);
+#if 0
haraken 2014/02/17 09:04:57 Remove this.
#if ENABLE(OILPAN)
m_results.grow(results.size());
for (size_t i = 0; i < results.size(); i++)
m_results[i] = results[i].get();
#endif
+#endif
}
void SpeechRecognitionResultList::trace(Visitor* visitor)

Powered by Google App Engine
This is Rietveld 408576698