Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(449)

Side by Side Diff: content/public/browser/speech_recognition_manager.h

Issue 16286010: Removed the IsRecordingInProcess check for speech since it is not needed (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: removed unused error code and relevant resource, cleaned up include Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « content/browser/speech/speech_recognizer_impl.cc ('k') | content/public/common/speech_recognition_error.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698