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

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

Issue 2785463005: Removing AudioSystem::GetAudioManager() usage from speech recognition (Closed)
Patch Set: Created 3 years, 9 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_impl.h
diff --git a/content/browser/speech/speech_recognizer_impl.h b/content/browser/speech/speech_recognizer_impl.h
index d14cdf407158794a35ae3dd9b634c14044db75ac..5be62ca5457b1904e63cba3b240b8e4f2a207ad2 100644
--- a/content/browser/speech/speech_recognizer_impl.h
+++ b/content/browser/speech/speech_recognizer_impl.h
@@ -43,10 +43,12 @@ class CONTENT_EXPORT SpeechRecognizerImpl
static const int kNoSpeechTimeoutMs;
static const int kEndpointerEstimationTimeMs;
- static void SetAudioSystemForTesting(media::AudioSystem* audio_system);
+ static void SetAudioEnvironmentForTesting(media::AudioSystem* audio_system,
+ media::AudioManager* audio_manager);
SpeechRecognizerImpl(SpeechRecognitionEventListener* listener,
media::AudioSystem* audio_system,
+ media::AudioManager* audio_manager,
int session_id,
bool continuous,
bool provisional_results,
@@ -162,10 +164,13 @@ class CONTENT_EXPORT SpeechRecognizerImpl
const SpeechRecognitionError& error) override;
media::AudioSystem* GetAudioSystem();
+ media::AudioManager* GetAudioManager();
// Substitutes the real audio system in browser tests.
static media::AudioSystem* audio_system_for_tests_;
+ static media::AudioManager* audio_manager_for_tests_;
media::AudioSystem* audio_system_;
+ media::AudioManager* audio_manager_;
std::unique_ptr<SpeechRecognitionEngine> recognition_engine_;
Endpointer endpointer_;
scoped_refptr<media::AudioInputController> audio_controller_;
« no previous file with comments | « content/browser/speech/speech_recognition_manager_impl.cc ('k') | content/browser/speech/speech_recognizer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698