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

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: Separate overriden methods in profile_impl.h 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
« no previous file with comments | « content/browser/speech/speech_input_preferences.cc ('k') | content/browser/speech/speech_recognizer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..bd1c8e4112038c073c55ebfe6da42d92b8d2acfb 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
@@ -83,6 +87,7 @@ class CONTENT_EXPORT SpeechRecognizer
int caller_id,
const std::string& language,
const std::string& grammar,
+ net::URLRequestContextGetter* context_getter,
bool censor_results,
const std::string& hardware_info,
const std::string& origin_url);
@@ -139,6 +144,7 @@ class CONTENT_EXPORT 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_;
« no previous file with comments | « content/browser/speech/speech_input_preferences.cc ('k') | content/browser/speech/speech_recognizer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698