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

Unified Diff: content/public/browser/speech_recognition_manager_delegate.h

Issue 12982009: Fixed the speech crash when the render view has gone away then users click "try again" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 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: content/public/browser/speech_recognition_manager_delegate.h
diff --git a/content/public/browser/speech_recognition_manager_delegate.h b/content/public/browser/speech_recognition_manager_delegate.h
index 7b729d16b30387eddc1d34270837002395039964..1e77ad5f9ef6a4f9e95506b4750ea0253415247f 100644
--- a/content/public/browser/speech_recognition_manager_delegate.h
+++ b/content/public/browser/speech_recognition_manager_delegate.h
@@ -30,6 +30,10 @@ class SpeechRecognitionManagerDelegate {
int session_id,
base::Callback<void(bool ask_user, bool is_allowed)> callback) = 0;
+ // Called when the event listener is going away for the sessions.
+ virtual void OnAbortSessionsForListener(
+ SpeechRecognitionEventListener* listener) = 0;
+
// Checks whether the delegate is interested (returning a non NULL ptr) or not
// (returning NULL) in receiving a copy of all sessions events.
virtual SpeechRecognitionEventListener* GetEventListener() = 0;

Powered by Google App Engine
This is Rietveld 408576698