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

Unified Diff: chrome/browser/extensions/extension_tts_api_controller.h

Issue 8437080: Fix crash when TTS utterances are queued on shutdown. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 1 month 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
« no previous file with comments | « no previous file | chrome/browser/extensions/extension_tts_api_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/extension_tts_api_controller.h
===================================================================
--- chrome/browser/extensions/extension_tts_api_controller.h (revision 109814)
+++ chrome/browser/extensions/extension_tts_api_controller.h (working copy)
@@ -219,10 +219,11 @@
void SetPlatformImpl(ExtensionTtsPlatformImpl* platform_impl);
int QueueSize();
- private:
+ protected:
ExtensionTtsController();
virtual ~ExtensionTtsController();
+ private:
// Get the platform TTS implementation (or injected mock).
ExtensionTtsPlatformImpl* GetPlatformImpl();
@@ -230,8 +231,9 @@
// |utterance| or delete it if there's an error. Returns true on success.
void SpeakNow(Utterance* utterance);
- // Clear the utterance queue.
- void ClearUtteranceQueue();
+ // Clear the utterance queue. If send_events is true, will send
+ // TTS_EVENT_CANCELLED events on each one.
+ void ClearUtteranceQueue(bool send_events);
// Finalize and delete the current utterance.
void FinishCurrentUtterance();
« no previous file with comments | « no previous file | chrome/browser/extensions/extension_tts_api_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698