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

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

Issue 7989001: Remove use of default request context and fix use of speech censor flag (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Update SpeechInputPreferences when preference changes Created 9 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: content/browser/speech/speech_recognizer.h
diff --git a/content/browser/speech/speech_recognizer.h b/content/browser/speech/speech_recognizer.h
index e350e65f21c2e0353e7300d976030510f577473c..f2f584d4d2a1fcc132588abb3193b9d54485bc0f 100644
--- a/content/browser/speech/speech_recognizer.h
+++ b/content/browser/speech/speech_recognizer.h
@@ -17,6 +17,12 @@
#include "content/common/content_export.h"
#include "media/audio/audio_input_controller.h"
+class SpeechInputPreferences;
+
+namespace net {
+class URLRequestContextGetter;
+}
+
namespace speech_input {
// Records audio, sends recorded audio to server and translates server response
@@ -83,7 +89,8 @@ class CONTENT_EXPORT SpeechRecognizer
int caller_id,
const std::string& language,
const std::string& grammar,
- bool censor_results,
+ net::URLRequestContextGetter* context_getter,
+ SpeechInputPreferences* speech_input_prefs,
Satish 2011/09/23 16:31:54 the prefs object could remain with SpeechInputMana
allanwoj 2011/09/26 13:05:15 Done.
const std::string& hardware_info,
const std::string& origin_url);
virtual ~SpeechRecognizer();
@@ -133,12 +140,13 @@ class CONTENT_EXPORT SpeechRecognizer
int caller_id_;
std::string language_;
std::string grammar_;
- bool censor_results_;
std::string hardware_info_;
std::string origin_url_;
scoped_ptr<SpeechRecognitionRequest> request_;
scoped_refptr<media::AudioInputController> audio_controller_;
+ scoped_refptr<net::URLRequestContextGetter> context_getter_;
+ scoped_refptr<SpeechInputPreferences> speech_input_prefs_;
AudioEncoder::Codec codec_;
scoped_ptr<AudioEncoder> encoder_;
Endpointer endpointer_;

Powered by Google App Engine
This is Rietveld 408576698