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

Unified Diff: chrome/browser/speech/chrome_speech_recognition_manager_delegate.h

Issue 636863003: Make SpeechRecognition per RenderFrame instead of per RenderView. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review comments Created 5 years, 11 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
« no previous file with comments | « no previous file | chrome/browser/speech/chrome_speech_recognition_manager_delegate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..4c484843a7c08428ac6fa2308373d0c72e75244d 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
@@ -50,8 +54,8 @@ class ChromeSpeechRecognitionManagerDelegate
content::SpeechRecognitionEventListener* GetEventListener() override;
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);
+ // Callback called by |tab_watcher_| on the UI thread to signal tab closure.
+ 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_;
« no previous file with comments | « no previous file | chrome/browser/speech/chrome_speech_recognition_manager_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698