Chromium Code Reviews| 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_PUBLIC_BROWSER_SPEECH_RECOGNITION_MANAGER_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_SPEECH_RECOGNITION_MANAGER_H_ |
| 6 #define CONTENT_PUBLIC_BROWSER_SPEECH_RECOGNITION_MANAGER_H_ | 6 #define CONTENT_PUBLIC_BROWSER_SPEECH_RECOGNITION_MANAGER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/string16.h" | 9 #include "base/string16.h" |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 42 // premilinary check on the delegate (CheckRecognitionIsAllowed). | 42 // premilinary check on the delegate (CheckRecognitionIsAllowed). |
| 43 virtual void StartSession(int session_id) = 0; | 43 virtual void StartSession(int session_id) = 0; |
| 44 | 44 |
| 45 // Aborts recognition for an existing session, without providing any result. | 45 // Aborts recognition for an existing session, without providing any result. |
| 46 virtual void AbortSession(int session_id) = 0; | 46 virtual void AbortSession(int session_id) = 0; |
| 47 | 47 |
| 48 // Aborts all sessions for a given listener, without providing any result. | 48 // Aborts all sessions for a given listener, without providing any result. |
| 49 virtual void AbortAllSessionsForListener( | 49 virtual void AbortAllSessionsForListener( |
| 50 SpeechRecognitionEventListener* listener) = 0; | 50 SpeechRecognitionEventListener* listener) = 0; |
| 51 | 51 |
| 52 // Aborts all sessions for a given renderer, without providing any result. | |
| 53 virtual void AbortAllSessionsForRenderer( | |
|
Satish
2012/07/03 15:11:57
should be 'ForTab' since you are also passing a re
Primiano Tucci (use gerrit)
2012/07/03 16:54:35
Wouldn't such rename exclude the background render
| |
| 54 int render_process_id, int render_view_id) = 0; | |
| 55 | |
| 52 // Stops audio capture for an existing session. The audio captured before the | 56 // Stops audio capture for an existing session. The audio captured before the |
| 53 // call will be processed, possibly ending up with a result. | 57 // call will be processed, possibly ending up with a result. |
| 54 virtual void StopAudioCaptureForSession(int session_id) = 0; | 58 virtual void StopAudioCaptureForSession(int session_id) = 0; |
| 55 | 59 |
| 56 // Retrieves the configuration of a session, as provided by the caller | 60 // Retrieves the configuration of a session, as provided by the caller |
| 57 // upon CreateSession. | 61 // upon CreateSession. |
| 58 virtual const SpeechRecognitionSessionConfig& GetSessionConfig(int session_id) | 62 virtual const SpeechRecognitionSessionConfig& GetSessionConfig(int session_id) |
| 59 const = 0; | 63 const = 0; |
| 60 | 64 |
| 61 // Retrieves the context associated to a session. | 65 // Retrieves the context associated to a session. |
| (...skipping 20 matching lines...) Expand all Loading... | |
| 82 // via the BrowserThread::FILE thread. | 86 // via the BrowserThread::FILE thread. |
| 83 virtual void ShowAudioInputSettings() = 0; | 87 virtual void ShowAudioInputSettings() = 0; |
| 84 | 88 |
| 85 protected: | 89 protected: |
| 86 virtual ~SpeechRecognitionManager() {} | 90 virtual ~SpeechRecognitionManager() {} |
| 87 }; | 91 }; |
| 88 | 92 |
| 89 } // namespace content | 93 } // namespace content |
| 90 | 94 |
| 91 #endif // CONTENT_PUBLIC_BROWSER_SPEECH_RECOGNITION_MANAGER_H_ | 95 #endif // CONTENT_PUBLIC_BROWSER_SPEECH_RECOGNITION_MANAGER_H_ |
| OLD | NEW |