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_RECOGNIZER_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_SPEECH_RECOGNIZER_H_ |
6 #define CONTENT_PUBLIC_BROWSER_SPEECH_RECOGNIZER_H_ | 6 #define CONTENT_PUBLIC_BROWSER_SPEECH_RECOGNIZER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
(...skipping 28 matching lines...) Expand all Loading... |
39 // though each recognition request can be made only after the previous one | 39 // though each recognition request can be made only after the previous one |
40 // completes (i.e. after receiving | 40 // completes (i.e. after receiving |
41 // SpeechRecognizerDelegate::DidCompleteRecognition). | 41 // SpeechRecognizerDelegate::DidCompleteRecognition). |
42 virtual bool StartRecording() = 0; | 42 virtual bool StartRecording() = 0; |
43 | 43 |
44 // Stops recording audio and cancels recognition. Any audio recorded so far | 44 // Stops recording audio and cancels recognition. Any audio recorded so far |
45 // gets discarded. | 45 // gets discarded. |
46 virtual void CancelRecognition() = 0; | 46 virtual void CancelRecognition() = 0; |
47 }; | 47 }; |
48 | 48 |
49 } // namespace speech_input | 49 } // namespace speech |
50 | 50 |
51 #endif // CONTENT_PUBLIC_BROWSER_SPEECH_RECOGNIZER_H_ | 51 #endif // CONTENT_PUBLIC_BROWSER_SPEECH_RECOGNIZER_H_ |
OLD | NEW |