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

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

Issue 10933018: Speech JavaScript API: Use the MediaStreamManager to ask for user permission. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address nits from xians Created 8 years, 3 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_DELEGATE_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_SPEECH_RECOGNITION_MANAGER_DELEGATE_H_
6 #define CONTENT_PUBLIC_BROWSER_SPEECH_RECOGNITION_MANAGER_DELEGATE_H_ 6 #define CONTENT_PUBLIC_BROWSER_SPEECH_RECOGNITION_MANAGER_DELEGATE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/callback_forward.h" 10 #include "base/callback_forward.h"
(...skipping 10 matching lines...) Expand all
21 public: 21 public:
22 virtual ~SpeechRecognitionManagerDelegate() {} 22 virtual ~SpeechRecognitionManagerDelegate() {}
23 23
24 // Get the optional diagnostic hardware information if available. 24 // Get the optional diagnostic hardware information if available.
25 virtual void GetDiagnosticInformation(bool* can_report_metrics, 25 virtual void GetDiagnosticInformation(bool* can_report_metrics,
26 std::string* hardware_info) = 0; 26 std::string* hardware_info) = 0;
27 27
28 // Checks (asynchronously) if current setup allows speech recognition. 28 // Checks (asynchronously) if current setup allows speech recognition.
29 virtual void CheckRecognitionIsAllowed( 29 virtual void CheckRecognitionIsAllowed(
30 int session_id, 30 int session_id,
31 base::Callback<void(int session_id, bool is_allowed)> callback) = 0; 31 base::Callback<void(bool ask_user, bool is_allowed)> callback) = 0;
32 32
33 // Checks whether the delegate is interested (returning a non NULL ptr) or not 33 // Checks whether the delegate is interested (returning a non NULL ptr) or not
34 // (returning NULL) in receiving a copy of all sessions events. 34 // (returning NULL) in receiving a copy of all sessions events.
35 virtual SpeechRecognitionEventListener* GetEventListener() = 0; 35 virtual SpeechRecognitionEventListener* GetEventListener() = 0;
36 }; 36 };
37 37
38 } // namespace content 38 } // namespace content
39 39
40 #endif // CONTENT_PUBLIC_BROWSER_SPEECH_RECOGNITION_MANAGER_DELEGATE_H_ 40 #endif // CONTENT_PUBLIC_BROWSER_SPEECH_RECOGNITION_MANAGER_DELEGATE_H_
OLDNEW
« no previous file with comments | « content/browser/speech/speech_recognizer.cc ('k') | content/public/common/speech_recognition_error.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698