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

Unified Diff: third_party/WebKit/Source/platform/speech/PlatformSpeechSynthesizer.h

Issue 1617383003: Move PlatformSpeechSynthesisVoice off the heap. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix oilpan compilation Created 4 years, 11 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: third_party/WebKit/Source/platform/speech/PlatformSpeechSynthesizer.h
diff --git a/third_party/WebKit/Source/platform/speech/PlatformSpeechSynthesizer.h b/third_party/WebKit/Source/platform/speech/PlatformSpeechSynthesizer.h
index c54e2f1849b92a6fe28c03e3c3f62be8b558b1c7..3fd6ff12da7584b29c94375f2553a014cc18b921 100644
--- a/third_party/WebKit/Source/platform/speech/PlatformSpeechSynthesizer.h
+++ b/third_party/WebKit/Source/platform/speech/PlatformSpeechSynthesizer.h
@@ -63,7 +63,7 @@ public:
virtual ~PlatformSpeechSynthesizer();
- const HeapVector<Member<PlatformSpeechSynthesisVoice>>& voiceList() const { return m_voiceList; }
+ const Vector<RefPtr<PlatformSpeechSynthesisVoice>>& voiceList() const { return m_voiceList; }
virtual void speak(PlatformSpeechSynthesisUtterance*);
virtual void pause();
virtual void resume();
@@ -71,7 +71,7 @@ public:
PlatformSpeechSynthesizerClient* client() const { return m_speechSynthesizerClient; }
- void setVoiceList(HeapVector<Member<PlatformSpeechSynthesisVoice>>&);
+ void setVoiceList(Vector<RefPtr<PlatformSpeechSynthesisVoice>>&);
// Eager finalization is required to promptly release the owned WebSpeechSynthesizer.
//
@@ -89,7 +89,7 @@ protected:
virtual void initializeVoiceList();
- HeapVector<Member<PlatformSpeechSynthesisVoice>> m_voiceList;
+ Vector<RefPtr<PlatformSpeechSynthesisVoice>> m_voiceList;
private:
Member<PlatformSpeechSynthesizerClient> m_speechSynthesizerClient;

Powered by Google App Engine
This is Rietveld 408576698