OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_INPUT_MANAGER_H_ | 5 #ifndef CHROME_BROWSER_SPEECH_CHROME_SPEECH_INPUT_MANAGER_H_ |
6 #define CHROME_BROWSER_SPEECH_CHROME_SPEECH_INPUT_MANAGER_H_ | 6 #define CHROME_BROWSER_SPEECH_CHROME_SPEECH_INPUT_MANAGER_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 | 9 |
10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
11 #include "base/memory/singleton.h" | 11 #include "base/memory/singleton.h" |
12 #include "chrome/browser/speech/speech_input_bubble_controller.h" | 12 #include "chrome/browser/speech/speech_input_bubble_controller.h" |
13 #include "content/browser/speech/speech_input_manager.h" | 13 #include "content/browser/speech/speech_input_manager.h" |
14 #include "content/browser/speech/speech_recognizer.h" | 14 #include "content/browser/speech/speech_recognizer.h" |
15 | 15 |
16 namespace speech_input { | 16 namespace speech_input { |
17 | 17 |
| 18 // This is Chrome's implementation of the SpeechInputManager interface. This |
| 19 // class is a singleton and accessed via the Get method. |
18 class ChromeSpeechInputManager : public SpeechInputManager, | 20 class ChromeSpeechInputManager : public SpeechInputManager, |
19 public SpeechInputBubbleControllerDelegate, | 21 public SpeechInputBubbleControllerDelegate, |
20 public SpeechRecognizerDelegate { | 22 public SpeechRecognizerDelegate { |
21 public: | 23 public: |
22 static ChromeSpeechInputManager* GetInstance(); | 24 static ChromeSpeechInputManager* GetInstance(); |
23 | 25 |
24 // SpeechInputManager methods. | 26 // SpeechInputManager methods. |
25 virtual void StartRecognition(SpeechInputManagerDelegate* delegate, | 27 virtual void StartRecognition(SpeechInputManagerDelegate* delegate, |
26 int caller_id, | 28 int caller_id, |
27 int render_process_id, | 29 int render_process_id, |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 int recording_caller_id_; | 84 int recording_caller_id_; |
83 scoped_refptr<SpeechInputBubbleController> bubble_controller_; | 85 scoped_refptr<SpeechInputBubbleController> bubble_controller_; |
84 scoped_refptr<OptionalRequestInfo> optional_request_info_; | 86 scoped_refptr<OptionalRequestInfo> optional_request_info_; |
85 | 87 |
86 DISALLOW_COPY_AND_ASSIGN(ChromeSpeechInputManager); | 88 DISALLOW_COPY_AND_ASSIGN(ChromeSpeechInputManager); |
87 }; | 89 }; |
88 | 90 |
89 } // namespace speech_input | 91 } // namespace speech_input |
90 | 92 |
91 #endif // CHROME_BROWSER_SPEECH_CHROME_SPEECH_INPUT_MANAGER_H_ | 93 #endif // CHROME_BROWSER_SPEECH_CHROME_SPEECH_INPUT_MANAGER_H_ |
OLD | NEW |