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

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

Issue 10933018: Speech JavaScript API: Use the MediaStreamManager to ask for user permission. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressing Satish's comments Created 8 years, 3 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: 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 a27ea8a728ba0b109a871f34b5315331eba3a04c..be45036359f5c446cce5f5bf1a59dd81035a3c18 100644
--- a/chrome/browser/speech/chrome_speech_recognition_manager_delegate.h
+++ b/chrome/browser/speech/chrome_speech_recognition_manager_delegate.h
@@ -15,6 +15,7 @@
class SpeechRecognitionTrayIconController;
namespace speech {
+
// This is Chrome's implementation of the SpeechRecognitionManagerDelegate
// interface.
class ChromeSpeechRecognitionManagerDelegate
@@ -51,7 +52,7 @@ class ChromeSpeechRecognitionManagerDelegate
std::string* hardware_info) OVERRIDE;
virtual void CheckRecognitionIsAllowed(
int session_id,
- base::Callback<void(int session_id, bool is_allowed)> callback) OVERRIDE;
+ base::Callback<void(bool ask_user, bool is_allowed)> callback) OVERRIDE;
virtual content::SpeechRecognitionEventListener* GetEventListener() OVERRIDE;
private:
@@ -71,9 +72,10 @@ class ChromeSpeechRecognitionManagerDelegate
// the result in the IO thread through |callback|.
static void CheckRenderViewType(
int session_id,
- base::Callback<void(int session_id, bool is_allowed)> callback,
+ base::Callback<void(bool ask_user, bool is_allowed)> callback,
int render_process_id,
- int render_view_id);
+ int render_view_id,
+ bool js_api);
// Starts a new recognition session, using the config of the last one
// (which is copied into |last_session_config_|). Used for "try again".

Powered by Google App Engine
This is Rietveld 408576698