| 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 CHROME_BROWSER_SPEECH_CHROME_SPEECH_RECOGNITION_MANAGER_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_SPEECH_CHROME_SPEECH_RECOGNITION_MANAGER_DELEGATE_H_ |
| 6 #define CHROME_BROWSER_SPEECH_CHROME_SPEECH_RECOGNITION_MANAGER_DELEGATE_H_ | 6 #define CHROME_BROWSER_SPEECH_CHROME_SPEECH_RECOGNITION_MANAGER_DELEGATE_H_ |
| 7 | 7 |
| 8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
| 10 #include "content/public/browser/speech_recognition_event_listener.h" | 10 #include "content/public/browser/speech_recognition_event_listener.h" |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 void OnRecognitionEnd(int session_id) override; | 33 void OnRecognitionEnd(int session_id) override; |
| 34 void OnRecognitionResults( | 34 void OnRecognitionResults( |
| 35 int session_id, | 35 int session_id, |
| 36 const content::SpeechRecognitionResults& result) override; | 36 const content::SpeechRecognitionResults& result) override; |
| 37 void OnRecognitionError( | 37 void OnRecognitionError( |
| 38 int session_id, | 38 int session_id, |
| 39 const content::SpeechRecognitionError& error) override; | 39 const content::SpeechRecognitionError& error) override; |
| 40 void OnAudioLevelsChange(int session_id, | 40 void OnAudioLevelsChange(int session_id, |
| 41 float volume, | 41 float volume, |
| 42 float noise_volume) override; | 42 float noise_volume) override; |
| 43 void OnAudioReceiverReady( |
| 44 int session_id, |
| 45 const media::AudioParameters& params, |
| 46 const base::SharedMemoryHandle memory, |
| 47 const base::SyncSocket::TransitDescriptor socket) override; |
| 43 | 48 |
| 44 // SpeechRecognitionManagerDelegate methods. | 49 // SpeechRecognitionManagerDelegate methods. |
| 45 void GetDiagnosticInformation(bool* can_report_metrics, | 50 void GetDiagnosticInformation(bool* can_report_metrics, |
| 46 std::string* hardware_info) override; | 51 std::string* hardware_info) override; |
| 47 void CheckRecognitionIsAllowed( | 52 void CheckRecognitionIsAllowed( |
| 48 int session_id, | 53 int session_id, |
| 49 base::Callback<void(bool ask_user, bool is_allowed)> callback) override; | 54 base::Callback<void(bool ask_user, bool is_allowed)> callback) override; |
| 50 content::SpeechRecognitionEventListener* GetEventListener() override; | 55 content::SpeechRecognitionEventListener* GetEventListener() override; |
| 51 bool FilterProfanities(int render_process_id) override; | 56 bool FilterProfanities(int render_process_id) override; |
| 52 | 57 |
| (...skipping 13 matching lines...) Expand all Loading... |
| 66 | 71 |
| 67 scoped_refptr<OptionalRequestInfo> optional_request_info_; | 72 scoped_refptr<OptionalRequestInfo> optional_request_info_; |
| 68 scoped_refptr<TabWatcher> tab_watcher_; | 73 scoped_refptr<TabWatcher> tab_watcher_; |
| 69 | 74 |
| 70 DISALLOW_COPY_AND_ASSIGN(ChromeSpeechRecognitionManagerDelegate); | 75 DISALLOW_COPY_AND_ASSIGN(ChromeSpeechRecognitionManagerDelegate); |
| 71 }; | 76 }; |
| 72 | 77 |
| 73 } // namespace speech | 78 } // namespace speech |
| 74 | 79 |
| 75 #endif // CHROME_BROWSER_SPEECH_CHROME_SPEECH_RECOGNITION_MANAGER_DELEGATE_H_ | 80 #endif // CHROME_BROWSER_SPEECH_CHROME_SPEECH_RECOGNITION_MANAGER_DELEGATE_H_ |
| OLD | NEW |