Index: chrome/browser/speech/chrome_speech_recognition_manager_delegate.h |
diff --git a/chrome/browser/speech/chrome_speech_recognition_manager_delegate.h b/chrome/browser/speech/chrome_speech_recognition_manager_delegate.h |
index b806b9979f88cdc7a18636eac5b6415fac9c2bba..a11f804bcb5cefb8192b1c29199cc69bf58f8a00 100644 |
--- a/chrome/browser/speech/chrome_speech_recognition_manager_delegate.h |
+++ b/chrome/browser/speech/chrome_speech_recognition_manager_delegate.h |
@@ -11,6 +11,10 @@ |
#include "content/public/browser/speech_recognition_manager_delegate.h" |
#include "content/public/browser/speech_recognition_session_config.h" |
+namespace content { |
+class WebContents; |
+} // namespace content |
+ |
namespace speech { |
// This is Chrome's implementation of the SpeechRecognitionManagerDelegate |
@@ -51,7 +55,7 @@ class ChromeSpeechRecognitionManagerDelegate |
bool FilterProfanities(int render_process_id) override; |
// Callback called by |tab_watcher_| on the IO thread to signal tab closure. |
- virtual void TabClosedCallback(int render_process_id, int render_view_id); |
+ virtual void TabClosedCallback(content::WebContents* web_contents); |
private: |
class OptionalRequestInfo; |
@@ -61,8 +65,7 @@ class ChromeSpeechRecognitionManagerDelegate |
// the result in the IO thread through |callback|. |
static void CheckRenderViewType( |
base::Callback<void(bool ask_user, bool is_allowed)> callback, |
- int render_process_id, |
- int render_view_id); |
+ const content::SpeechRecognitionSessionContext& context); |
scoped_refptr<OptionalRequestInfo> optional_request_info_; |
scoped_refptr<TabWatcher> tab_watcher_; |