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" |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 void OnStartRecognition( | 44 void OnStartRecognition( |
45 const SpeechInputHostMsg_StartRecognition_Params ¶ms); | 45 const SpeechInputHostMsg_StartRecognition_Params ¶ms); |
46 void OnCancelRecognition(int render_view_id, int request_id); | 46 void OnCancelRecognition(int render_view_id, int request_id); |
47 void OnStopRecording(int render_view_id, int request_id); | 47 void OnStopRecording(int render_view_id, int request_id); |
48 | 48 |
49 // Returns the speech input manager to forward events to, creating one if | 49 // Returns the speech input manager to forward events to, creating one if |
50 // needed. | 50 // needed. |
51 SpeechInputManager* manager(); | 51 SpeechInputManager* manager(); |
52 | 52 |
53 int render_process_id_; | 53 int render_process_id_; |
| 54 bool may_have_pending_requests_; // Set if we received any speech IPC request |
54 | 55 |
55 static SpeechInputManager::AccessorMethod* manager_accessor_; | 56 static SpeechInputManager::AccessorMethod* manager_accessor_; |
56 | 57 |
57 DISALLOW_COPY_AND_ASSIGN(SpeechInputDispatcherHost); | 58 DISALLOW_COPY_AND_ASSIGN(SpeechInputDispatcherHost); |
58 }; | 59 }; |
59 | 60 |
60 } // namespace speech_input | 61 } // namespace speech_input |
61 | 62 |
62 #endif // CHROME_BROWSER_SPEECH_SPEECH_INPUT_DISPATCHER_HOST_H_ | 63 #endif // CHROME_BROWSER_SPEECH_SPEECH_INPUT_DISPATCHER_HOST_H_ |
OLD | NEW |