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

Unified Diff: content/browser/speech/speech_input_manager.h

Issue 7086005: Context menu for "Voice recognition options" (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: No changes (Just trying to get commit-bot to wake up) Created 9 years, 5 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 | « chrome/common/url_constants.cc ('k') | content/browser/speech/speech_recognition_request.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/speech/speech_input_manager.h
diff --git a/content/browser/speech/speech_input_manager.h b/content/browser/speech/speech_input_manager.h
index 342f2c139d7dc97ddfca349211ca97841f4d74ea..abc1d8980b883057dda8aa938ade003193e2e511 100644
--- a/content/browser/speech/speech_input_manager.h
+++ b/content/browser/speech/speech_input_manager.h
@@ -31,6 +31,8 @@ class SpeechInputManager {
virtual ~Delegate() {}
};
+ SpeechInputManager() : censor_results_(true) {}
+
// Invokes the platform provided microphone settings UI in a non-blocking way,
// via the BrowserThread::FILE thread.
static void ShowAudioInputSettings();
@@ -64,6 +66,12 @@ class SpeechInputManager {
virtual void StopRecording(int caller_id) = 0;
virtual void CancelAllRequestsWithDelegate(Delegate* delegate) = 0;
+
+ void set_censor_results(bool censor) { censor_results_ = censor; }
+
+ bool censor_results() { return censor_results_; }
+ private:
+ bool censor_results_;
};
// This typedef is to workaround the issue with certain versions of
« no previous file with comments | « chrome/common/url_constants.cc ('k') | content/browser/speech/speech_recognition_request.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698