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

Unified Diff: Source/platform/exported/WebSpeechSynthesizerClientImpl.cpp

Issue 339823003: Oilpan: move platform speech objects to the heap. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Trace SpeechRecognition's controller reference. Created 6 years, 6 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/platform/exported/WebSpeechSynthesizerClientImpl.cpp
diff --git a/Source/platform/exported/WebSpeechSynthesizerClientImpl.cpp b/Source/platform/exported/WebSpeechSynthesizerClientImpl.cpp
index da6fc390deca868cd10ae34211af62e10a2e8466..0102a3e755a11aa36fa439b14650d8ae780d48a2 100644
--- a/Source/platform/exported/WebSpeechSynthesizerClientImpl.cpp
+++ b/Source/platform/exported/WebSpeechSynthesizerClientImpl.cpp
@@ -42,9 +42,9 @@ WebSpeechSynthesizerClientImpl::~WebSpeechSynthesizerClientImpl()
void WebSpeechSynthesizerClientImpl::setVoiceList(const blink::WebVector<blink::WebSpeechSynthesisVoice>& voices)
{
- Vector<RefPtr<PlatformSpeechSynthesisVoice> > outVoices;
+ HeapVector<Member<PlatformSpeechSynthesisVoice> > outVoices;
for (size_t i = 0; i < voices.size(); i++)
- outVoices.append(PassRefPtr<PlatformSpeechSynthesisVoice>(voices[i]));
+ outVoices.append(voices[i]);
m_synthesizer->setVoiceList(outVoices);
m_client->voicesDidChange();
}
@@ -84,4 +84,10 @@ void WebSpeechSynthesizerClientImpl::sentenceBoundaryEventOccurred(const blink::
m_client->boundaryEventOccurred(utterance, SpeechSentenceBoundary, charIndex);
}
+void WebSpeechSynthesizerClientImpl::trace(Visitor* visitor)
+{
+ visitor->trace(m_synthesizer);
+ visitor->trace(m_client);
+}
+
} // namespace WebCore
« no previous file with comments | « Source/platform/exported/WebSpeechSynthesizerClientImpl.h ('k') | Source/platform/speech/PlatformSpeechSynthesisUtterance.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698