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

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: " 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 f109e92dcbeadc93a8802996f419f6532ce9cff7..d6cece62bc3381387c4b89999e7113fc32ff50ad 100644
--- a/content/browser/speech/speech_recognizer.h
+++ b/content/browser/speech/speech_recognizer.h
@@ -17,6 +17,10 @@
#include "content/common/content_export.h"
#include "media/audio/audio_input_controller.h"
+namespace net {
+class URLRequestContextGetter;
+}
+
namespace speech_input {
// Records audio, sends recorded audio to server and translates server response
@@ -84,6 +88,7 @@ class SpeechRecognizer
const std::string& language,
const std::string& grammar,
bool censor_results,
+ net::URLRequestContextGetter* context_getter,
const std::string& hardware_info,
const std::string& origin_url);
virtual ~SpeechRecognizer();
@@ -139,6 +144,7 @@ class SpeechRecognizer
scoped_ptr<SpeechRecognitionRequest> request_;
scoped_refptr<media::AudioInputController> audio_controller_;
+ scoped_refptr<net::URLRequestContextGetter> context_getter_;
AudioEncoder::Codec codec_;
scoped_ptr<AudioEncoder> encoder_;
Endpointer endpointer_;

Powered by Google App Engine
This is Rietveld 408576698