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

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

Issue 8818012: Remove the AudioManager singleton. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Set svn eol properties for a couple of files Created 9 years 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_manager.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
===================================================================
--- content/browser/speech/speech_recognizer.h (revision 114012)
+++ content/browser/speech/speech_recognizer.h (working copy)
@@ -86,6 +86,7 @@
const std::string& language,
const std::string& grammar,
net::URLRequestContextGetter* context_getter,
+ AudioManager* audio_manager,
bool filter_profanities,
const std::string& hardware_info,
const std::string& origin_url);
@@ -118,6 +119,8 @@
virtual void SetRecognitionResult(
const content::SpeechInputResult& result) OVERRIDE;
+ AudioManager* audio_manager() const { return audio_manager_; }
+
static const int kAudioSampleRate;
static const int kAudioPacketIntervalMs; // Duration of each audio packet.
static const ChannelLayout kChannelLayout;
@@ -145,6 +148,7 @@
scoped_ptr<SpeechRecognitionRequest> request_;
scoped_refptr<media::AudioInputController> audio_controller_;
scoped_refptr<net::URLRequestContextGetter> context_getter_;
+ scoped_refptr<AudioManager> audio_manager_;
AudioEncoder::Codec codec_;
scoped_ptr<AudioEncoder> encoder_;
Endpointer endpointer_;
« no previous file with comments | « content/browser/speech/speech_input_manager.cc ('k') | content/browser/speech/speech_recognizer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698