| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_SPEECH_INPUT_MANAGER_H_ | 5 #ifndef CHROME_BROWSER_SPEECH_SPEECH_INPUT_MANAGER_H_ |
| 6 #define CHROME_BROWSER_SPEECH_SPEECH_INPUT_MANAGER_H_ | 6 #define CHROME_BROWSER_SPEECH_SPEECH_INPUT_MANAGER_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/ref_counted.h" | |
| 10 #include "chrome/browser/speech/speech_recognizer.h" | 9 #include "chrome/browser/speech/speech_recognizer.h" |
| 11 #include "ipc/ipc_message.h" | 10 #include "ipc/ipc_message.h" |
| 12 | 11 |
| 13 namespace speech_input { | 12 namespace speech_input { |
| 14 | 13 |
| 15 // This is the gatekeeper for speech recognition in the browser process. It | 14 // This is the gatekeeper for speech recognition in the browser process. It |
| 16 // handles requests received from various render views and makes sure only one | 15 // handles requests received from various render views and makes sure only one |
| 17 // of them can use speech recognition at a time. It also sends recognition | 16 // of them can use speech recognition at a time. It also sends recognition |
| 18 // results and status events to the render views when required. | 17 // results and status events to the render views when required. |
| 19 class SpeechInputManager { | 18 class SpeechInputManager { |
| (...skipping 23 matching lines...) Expand all Loading... |
| 43 | 42 |
| 44 // This typedef is to workaround the issue with certain versions of | 43 // This typedef is to workaround the issue with certain versions of |
| 45 // Visual Studio where it gets confused between multiple Delegate | 44 // Visual Studio where it gets confused between multiple Delegate |
| 46 // classes and gives a C2500 error. (I saw this error on the try bots - | 45 // classes and gives a C2500 error. (I saw this error on the try bots - |
| 47 // the workaround was not needed for my machine). | 46 // the workaround was not needed for my machine). |
| 48 typedef SpeechInputManager::Delegate SpeechInputManagerDelegate; | 47 typedef SpeechInputManager::Delegate SpeechInputManagerDelegate; |
| 49 | 48 |
| 50 } // namespace speech_input | 49 } // namespace speech_input |
| 51 | 50 |
| 52 #endif // CHROME_BROWSER_SPEECH_SPEECH_INPUT_MANAGER_H_ | 51 #endif // CHROME_BROWSER_SPEECH_SPEECH_INPUT_MANAGER_H_ |
| OLD | NEW |