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

Side by Side Diff: content/browser/speech/speech_recognition_manager_impl.h

Issue 16286010: Removed the IsRecordingInProcess check for speech since it is not needed (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: removed unused error code and relevant resource, cleaned up include Created 7 years, 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_BROWSER_SPEECH_SPEECH_RECOGNITION_MANAGER_IMPL_H_ 5 #ifndef CONTENT_BROWSER_SPEECH_SPEECH_RECOGNITION_MANAGER_IMPL_H_
6 #define CONTENT_BROWSER_SPEECH_SPEECH_RECOGNITION_MANAGER_IMPL_H_ 6 #define CONTENT_BROWSER_SPEECH_SPEECH_RECOGNITION_MANAGER_IMPL_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 int render_view_id) OVERRIDE; 62 int render_view_id) OVERRIDE;
63 virtual void StopAudioCaptureForSession(int session_id) OVERRIDE; 63 virtual void StopAudioCaptureForSession(int session_id) OVERRIDE;
64 virtual const SpeechRecognitionSessionConfig& GetSessionConfig( 64 virtual const SpeechRecognitionSessionConfig& GetSessionConfig(
65 int session_id) const OVERRIDE; 65 int session_id) const OVERRIDE;
66 virtual SpeechRecognitionSessionContext GetSessionContext( 66 virtual SpeechRecognitionSessionContext GetSessionContext(
67 int session_id) const OVERRIDE; 67 int session_id) const OVERRIDE;
68 virtual int GetSession(int render_process_id, 68 virtual int GetSession(int render_process_id,
69 int render_view_id, 69 int render_view_id,
70 int request_id) const OVERRIDE; 70 int request_id) const OVERRIDE;
71 virtual bool HasAudioInputDevices() OVERRIDE; 71 virtual bool HasAudioInputDevices() OVERRIDE;
72 virtual bool IsCapturingAudio() OVERRIDE;
73 virtual string16 GetAudioInputDeviceModel() OVERRIDE; 72 virtual string16 GetAudioInputDeviceModel() OVERRIDE;
74 virtual void ShowAudioInputSettings() OVERRIDE; 73 virtual void ShowAudioInputSettings() OVERRIDE;
75 74
76 // SpeechRecognitionEventListener methods. 75 // SpeechRecognitionEventListener methods.
77 virtual void OnRecognitionStart(int session_id) OVERRIDE; 76 virtual void OnRecognitionStart(int session_id) OVERRIDE;
78 virtual void OnAudioStart(int session_id) OVERRIDE; 77 virtual void OnAudioStart(int session_id) OVERRIDE;
79 virtual void OnEnvironmentEstimationComplete(int session_id) OVERRIDE; 78 virtual void OnEnvironmentEstimationComplete(int session_id) OVERRIDE;
80 virtual void OnSoundStart(int session_id) OVERRIDE; 79 virtual void OnSoundStart(int session_id) OVERRIDE;
81 virtual void OnSoundEnd(int session_id) OVERRIDE; 80 virtual void OnSoundEnd(int session_id) OVERRIDE;
82 virtual void OnAudioEnd(int session_id) OVERRIDE; 81 virtual void OnAudioEnd(int session_id) OVERRIDE;
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 170
172 // Used for posting asynchronous tasks (on the IO thread) without worrying 171 // Used for posting asynchronous tasks (on the IO thread) without worrying
173 // about this class being destroyed in the meanwhile (due to browser shutdown) 172 // about this class being destroyed in the meanwhile (due to browser shutdown)
174 // since tasks pending on a destroyed WeakPtr are automatically discarded. 173 // since tasks pending on a destroyed WeakPtr are automatically discarded.
175 base::WeakPtrFactory<SpeechRecognitionManagerImpl> weak_factory_; 174 base::WeakPtrFactory<SpeechRecognitionManagerImpl> weak_factory_;
176 }; 175 };
177 176
178 } // namespace content 177 } // namespace content
179 178
180 #endif // CONTENT_BROWSER_SPEECH_SPEECH_RECOGNITION_MANAGER_IMPL_H_ 179 #endif // CONTENT_BROWSER_SPEECH_SPEECH_RECOGNITION_MANAGER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698