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_DISPATCHER_HOST_H_ | 5 #ifndef CHROME_BROWSER_SPEECH_SPEECH_INPUT_DISPATCHER_HOST_H_ |
6 #define CHROME_BROWSER_SPEECH_SPEECH_INPUT_DISPATCHER_HOST_H_ | 6 #define CHROME_BROWSER_SPEECH_SPEECH_INPUT_DISPATCHER_HOST_H_ |
7 | 7 |
8 #include "base/scoped_ptr.h" | 8 #include "base/scoped_ptr.h" |
9 #include "chrome/browser/browser_message_filter.h" | 9 #include "chrome/browser/browser_message_filter.h" |
10 #include "chrome/browser/speech/speech_input_manager.h" | 10 #include "chrome/browser/speech/speech_input_manager.h" |
11 | 11 |
12 namespace speech_input { | 12 namespace speech_input { |
13 | 13 |
14 // SpeechInputDispatcherHost is a delegate for Speech API messages used by | 14 // SpeechInputDispatcherHost is a delegate for Speech API messages used by |
15 // ResourceMessageFilter. | 15 // RenderMessageFilter. |
16 // It's the complement of SpeechInputDispatcher (owned by RenderView). | 16 // It's the complement of SpeechInputDispatcher (owned by RenderView). |
17 class SpeechInputDispatcherHost : public BrowserMessageFilter, | 17 class SpeechInputDispatcherHost : public BrowserMessageFilter, |
18 public SpeechInputManager::Delegate { | 18 public SpeechInputManager::Delegate { |
19 public: | 19 public: |
20 class SpeechInputCallers; | 20 class SpeechInputCallers; |
21 | 21 |
22 explicit SpeechInputDispatcherHost(int render_process_id); | 22 explicit SpeechInputDispatcherHost(int render_process_id); |
23 | 23 |
24 // SpeechInputManager::Delegate methods. | 24 // SpeechInputManager::Delegate methods. |
25 virtual void SetRecognitionResult(int caller_id, | 25 virtual void SetRecognitionResult(int caller_id, |
(...skipping 27 matching lines...) Expand all Loading... |
53 int render_process_id_; | 53 int render_process_id_; |
54 | 54 |
55 static SpeechInputManager::AccessorMethod* manager_accessor_; | 55 static SpeechInputManager::AccessorMethod* manager_accessor_; |
56 | 56 |
57 DISALLOW_COPY_AND_ASSIGN(SpeechInputDispatcherHost); | 57 DISALLOW_COPY_AND_ASSIGN(SpeechInputDispatcherHost); |
58 }; | 58 }; |
59 | 59 |
60 } // namespace speech_input | 60 } // namespace speech_input |
61 | 61 |
62 #endif // CHROME_BROWSER_SPEECH_SPEECH_INPUT_DISPATCHER_HOST_H_ | 62 #endif // CHROME_BROWSER_SPEECH_SPEECH_INPUT_DISPATCHER_HOST_H_ |
OLD | NEW |