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_RECOGNITION_MANAGER_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_SPEECH_RECOGNITION_MANAGER_H_ |
6 #define CONTENT_PUBLIC_BROWSER_SPEECH_RECOGNITION_MANAGER_H_ | 6 #define CONTENT_PUBLIC_BROWSER_SPEECH_RECOGNITION_MANAGER_H_ |
7 | 7 |
8 #include "base/string16.h" | 8 #include "base/string16.h" |
9 #include "base/callback.h" | 9 #include "base/callback.h" |
10 #include "content/common/content_export.h" | 10 #include "content/common/content_export.h" |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 | 71 |
72 // Looks-up an existing session from the context tuple | 72 // Looks-up an existing session from the context tuple |
73 // {render_view_id, render_view_id, request_id}. | 73 // {render_view_id, render_view_id, request_id}. |
74 virtual int GetSession(int render_process_id, | 74 virtual int GetSession(int render_process_id, |
75 int render_view_id, | 75 int render_view_id, |
76 int request_id) const = 0; | 76 int request_id) const = 0; |
77 | 77 |
78 // Returns true if the OS reports existence of audio recording devices. | 78 // Returns true if the OS reports existence of audio recording devices. |
79 virtual bool HasAudioInputDevices() = 0; | 79 virtual bool HasAudioInputDevices() = 0; |
80 | 80 |
81 // Used to determine if something else is currently making use of audio input. | |
82 virtual bool IsCapturingAudio() = 0; | |
83 | |
84 // Returns a human readable string for the model/make of the active audio | 81 // Returns a human readable string for the model/make of the active audio |
85 // input device for this computer. | 82 // input device for this computer. |
86 virtual string16 GetAudioInputDeviceModel() = 0; | 83 virtual string16 GetAudioInputDeviceModel() = 0; |
87 | 84 |
88 // Invokes the platform provided microphone settings UI in a non-blocking way, | 85 // Invokes the platform provided microphone settings UI in a non-blocking way, |
89 // via the BrowserThread::FILE thread. | 86 // via the BrowserThread::FILE thread. |
90 virtual void ShowAudioInputSettings() = 0; | 87 virtual void ShowAudioInputSettings() = 0; |
91 | 88 |
92 protected: | 89 protected: |
93 virtual ~SpeechRecognitionManager() {} | 90 virtual ~SpeechRecognitionManager() {} |
94 | 91 |
95 private: | 92 private: |
96 static SpeechRecognitionManager* manager_for_tests_; | 93 static SpeechRecognitionManager* manager_for_tests_; |
97 }; | 94 }; |
98 | 95 |
99 } // namespace content | 96 } // namespace content |
100 | 97 |
101 #endif // CONTENT_PUBLIC_BROWSER_SPEECH_RECOGNITION_MANAGER_H_ | 98 #endif // CONTENT_PUBLIC_BROWSER_SPEECH_RECOGNITION_MANAGER_H_ |
OLD | NEW |