Index: content/public/browser/speech_recognition_manager.h |
diff --git a/content/public/browser/speech_recognition_manager.h b/content/public/browser/speech_recognition_manager.h |
index f72e75fd9b83e084a178250728fdf4cbc83afa79..cf736724dbd408031291efa79737f28b3868ba51 100644 |
--- a/content/public/browser/speech_recognition_manager.h |
+++ b/content/public/browser/speech_recognition_manager.h |
@@ -12,6 +12,7 @@ |
namespace content { |
+class RenderFrameHost; |
class SpeechRecognitionEventListener; |
struct SpeechRecognitionSessionConfig; |
struct SpeechRecognitionSessionContext; |
@@ -48,13 +49,9 @@ class SpeechRecognitionManager { |
// Aborts recognition for an existing session, without providing any result. |
virtual void AbortSession(int session_id) = 0; |
- // Aborts all sessions for a given render process, |
- // without providing any result. |
- virtual void AbortAllSessionsForRenderProcess(int render_process_id) = 0; |
- |
- // Aborts all sessions for a given RenderView, without providing any result. |
- virtual void AbortAllSessionsForRenderView(int render_process_id, |
- int render_view_id) = 0; |
+ // Aborts all sessions for a given RenderFrame, without providing any result. |
+ virtual void AbortAllSessionsForRenderFrame( |
+ RenderFrameHost* render_frame_host) = 0; |
// Stops audio capture for an existing session. The audio captured before the |
// call will be processed, possibly ending up with a result. |
@@ -70,9 +67,8 @@ class SpeechRecognitionManager { |
int session_id) const = 0; |
// Looks-up an existing session from the context tuple |
- // {render_view_id, render_view_id, request_id}. |
- virtual int GetSession(int render_process_id, |
- int render_view_id, |
+ // {render_frame_host, request_id}. |
+ virtual int GetSession(RenderFrameHost* render_frame_host, |
int request_id) const = 0; |
// Returns true if the OS reports existence of audio recording devices. |