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

Unified Diff: Source/modules/speech/testing/PlatformSpeechSynthesizerMock.h

Issue 180553004: Fix use-after-free of m_currentSpeechUtterance. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix nullptr again? 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/testing/PlatformSpeechSynthesizerMock.h
diff --git a/Source/modules/speech/testing/PlatformSpeechSynthesizerMock.h b/Source/modules/speech/testing/PlatformSpeechSynthesizerMock.h
index 3e3e726727bd92d523330e6c52e215317fa2928f..aedc2d037dc07dc0a77eb621cca4a66eb0a42bf6 100644
--- a/Source/modules/speech/testing/PlatformSpeechSynthesizerMock.h
+++ b/Source/modules/speech/testing/PlatformSpeechSynthesizerMock.h
@@ -46,8 +46,10 @@ private:
explicit PlatformSpeechSynthesizerMock(PlatformSpeechSynthesizerClient*);
virtual void initializeVoiceList() OVERRIDE;
void speakingFinished(Timer<PlatformSpeechSynthesizerMock>*);
+ void speakingErrorOccurred(Timer<PlatformSpeechSynthesizerMock>*);
Timer<PlatformSpeechSynthesizerMock> m_speakingFinishedTimer;
+ Timer<PlatformSpeechSynthesizerMock> m_speakingErrorOccurredTimer;
RefPtr<PlatformSpeechSynthesisUtterance> m_utterance;
};
« no previous file with comments | « Source/modules/speech/SpeechSynthesis.cpp ('k') | Source/modules/speech/testing/PlatformSpeechSynthesizerMock.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698