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

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

Issue 9972008: Refactoring of chrome speech recognition architecture (CL1.6) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased from master (incl. leak patch) Created 8 years, 8 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/input_tag_speech_dispatcher_host.h
diff --git a/content/browser/speech/input_tag_speech_dispatcher_host.h b/content/browser/speech/input_tag_speech_dispatcher_host.h
index c988faf0ab17750701140f8de211527baa488e7d..95bd252f4baa9169a95e5859824a1704bfbe46cb 100644
--- a/content/browser/speech/input_tag_speech_dispatcher_host.h
+++ b/content/browser/speech/input_tag_speech_dispatcher_host.h
@@ -31,19 +31,18 @@ class SpeechRecognitionManagerImpl;
class CONTENT_EXPORT InputTagSpeechDispatcherHost
: public content::BrowserMessageFilter {
public:
- class Callers;
+ class Sessions;
InputTagSpeechDispatcherHost(
int render_process_id,
net::URLRequestContextGetter* context_getter,
- content::SpeechRecognitionPreferences* recognition_preferences,
- media::AudioManager* audio_manager);
+ content::SpeechRecognitionPreferences* recognition_preferences);
// Methods called by SpeechRecognitionManagerImpl.
- void SetRecognitionResult(int caller_id,
+ void SetRecognitionResult(int session_id,
const content::SpeechRecognitionResult& result);
- void DidCompleteRecording(int caller_id);
- void DidCompleteRecognition(int caller_id);
+ void DidCompleteRecording(int session_id);
+ void DidCompleteRecognition(int session_id);
// content::BrowserMessageFilter implementation.
virtual bool OnMessageReceived(const IPC::Message& message,
@@ -69,7 +68,6 @@ class CONTENT_EXPORT InputTagSpeechDispatcherHost
scoped_refptr<net::URLRequestContextGetter> context_getter_;
scoped_refptr<content::SpeechRecognitionPreferences> recognition_preferences_;
- media::AudioManager* audio_manager_;
static SpeechRecognitionManagerImpl* manager_;

Powered by Google App Engine
This is Rietveld 408576698