| OLD | NEW |
| 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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 virtual void OnRecognitionStart(int caller_id) OVERRIDE; | 75 virtual void OnRecognitionStart(int caller_id) OVERRIDE; |
| 76 virtual void OnAudioStart(int caller_id) OVERRIDE; | 76 virtual void OnAudioStart(int caller_id) OVERRIDE; |
| 77 virtual void OnEnvironmentEstimationComplete(int caller_id) OVERRIDE; | 77 virtual void OnEnvironmentEstimationComplete(int caller_id) OVERRIDE; |
| 78 virtual void OnSoundStart(int caller_id) OVERRIDE; | 78 virtual void OnSoundStart(int caller_id) OVERRIDE; |
| 79 virtual void OnSoundEnd(int caller_id) OVERRIDE; | 79 virtual void OnSoundEnd(int caller_id) OVERRIDE; |
| 80 virtual void OnAudioEnd(int caller_id) OVERRIDE; | 80 virtual void OnAudioEnd(int caller_id) OVERRIDE; |
| 81 virtual void OnRecognitionEnd(int caller_id) OVERRIDE; | 81 virtual void OnRecognitionEnd(int caller_id) OVERRIDE; |
| 82 virtual void OnRecognitionResult( | 82 virtual void OnRecognitionResult( |
| 83 int caller_id, const content::SpeechRecognitionResult& result) OVERRIDE; | 83 int caller_id, const content::SpeechRecognitionResult& result) OVERRIDE; |
| 84 virtual void OnRecognitionError( | 84 virtual void OnRecognitionError( |
| 85 int caller_id, const content::SpeechRecognitionErrorCode& error) OVERRIDE; | 85 int caller_id, const content::SpeechRecognitionError& error) OVERRIDE; |
| 86 virtual void OnAudioLevelsChange( | 86 virtual void OnAudioLevelsChange( |
| 87 int caller_id, float volume, float noise_volume) OVERRIDE; | 87 int caller_id, float volume, float noise_volume) OVERRIDE; |
| 88 | 88 |
| 89 protected: | 89 protected: |
| 90 // Private constructor to enforce singleton. | 90 // Private constructor to enforce singleton. |
| 91 friend struct DefaultSingletonTraits<SpeechRecognitionManagerImpl>; | 91 friend struct DefaultSingletonTraits<SpeechRecognitionManagerImpl>; |
| 92 SpeechRecognitionManagerImpl(); | 92 SpeechRecognitionManagerImpl(); |
| 93 virtual ~SpeechRecognitionManagerImpl(); | 93 virtual ~SpeechRecognitionManagerImpl(); |
| 94 | 94 |
| 95 bool HasPendingRequest(int caller_id) const; | 95 bool HasPendingRequest(int caller_id) const; |
| (...skipping 22 matching lines...) Expand all Loading... |
| 118 SpeechRecognizerMap requests_; | 118 SpeechRecognizerMap requests_; |
| 119 std::string request_info_; | 119 std::string request_info_; |
| 120 bool can_report_metrics_; | 120 bool can_report_metrics_; |
| 121 int recording_caller_id_; | 121 int recording_caller_id_; |
| 122 content::SpeechRecognitionManagerDelegate* delegate_; | 122 content::SpeechRecognitionManagerDelegate* delegate_; |
| 123 }; | 123 }; |
| 124 | 124 |
| 125 } // namespace speech | 125 } // namespace speech |
| 126 | 126 |
| 127 #endif // CONTENT_BROWSER_SPEECH_SPEECH_RECOGNITION_MANAGER_IMPL_H_ | 127 #endif // CONTENT_BROWSER_SPEECH_SPEECH_RECOGNITION_MANAGER_IMPL_H_ |
| OLD | NEW |