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

Side by Side Diff: chrome/browser/speech/chrome_speech_recognition_manager_delegate.h

Issue 549373003: Binding media stream audio track to speech recognition [browser] Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Introduce SpeechRecognitionAudioReceiver Created 6 years, 2 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
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 CHROME_BROWSER_SPEECH_CHROME_SPEECH_RECOGNITION_MANAGER_DELEGATE_H_ 5 #ifndef CHROME_BROWSER_SPEECH_CHROME_SPEECH_RECOGNITION_MANAGER_DELEGATE_H_
6 #define CHROME_BROWSER_SPEECH_CHROME_SPEECH_RECOGNITION_MANAGER_DELEGATE_H_ 6 #define CHROME_BROWSER_SPEECH_CHROME_SPEECH_RECOGNITION_MANAGER_DELEGATE_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "content/public/browser/speech_recognition_event_listener.h" 10 #include "content/public/browser/speech_recognition_event_listener.h"
(...skipping 19 matching lines...) Expand all
30 virtual void OnSoundStart(int session_id) OVERRIDE; 30 virtual void OnSoundStart(int session_id) OVERRIDE;
31 virtual void OnSoundEnd(int session_id) OVERRIDE; 31 virtual void OnSoundEnd(int session_id) OVERRIDE;
32 virtual void OnAudioEnd(int session_id) OVERRIDE; 32 virtual void OnAudioEnd(int session_id) OVERRIDE;
33 virtual void OnRecognitionEnd(int session_id) OVERRIDE; 33 virtual void OnRecognitionEnd(int session_id) OVERRIDE;
34 virtual void OnRecognitionResults( 34 virtual void OnRecognitionResults(
35 int session_id, const content::SpeechRecognitionResults& result) OVERRIDE; 35 int session_id, const content::SpeechRecognitionResults& result) OVERRIDE;
36 virtual void OnRecognitionError( 36 virtual void OnRecognitionError(
37 int session_id, const content::SpeechRecognitionError& error) OVERRIDE; 37 int session_id, const content::SpeechRecognitionError& error) OVERRIDE;
38 virtual void OnAudioLevelsChange(int session_id, float volume, 38 virtual void OnAudioLevelsChange(int session_id, float volume,
39 float noise_volume) OVERRIDE; 39 float noise_volume) OVERRIDE;
40 virtual void OnSharedAudioBusReady(
41 int session_id,
42 const media::AudioParameters& params,
43 const base::SharedMemoryHandle memory,
44 const base::SyncSocket::TransitDescriptor socket) OVERRIDE;
40 45
41 // SpeechRecognitionManagerDelegate methods. 46 // SpeechRecognitionManagerDelegate methods.
42 virtual void GetDiagnosticInformation(bool* can_report_metrics, 47 virtual void GetDiagnosticInformation(bool* can_report_metrics,
43 std::string* hardware_info) OVERRIDE; 48 std::string* hardware_info) OVERRIDE;
44 virtual void CheckRecognitionIsAllowed( 49 virtual void CheckRecognitionIsAllowed(
45 int session_id, 50 int session_id,
46 base::Callback<void(bool ask_user, bool is_allowed)> callback) OVERRIDE; 51 base::Callback<void(bool ask_user, bool is_allowed)> callback) OVERRIDE;
47 virtual content::SpeechRecognitionEventListener* GetEventListener() OVERRIDE; 52 virtual content::SpeechRecognitionEventListener* GetEventListener() OVERRIDE;
48 virtual bool FilterProfanities(int render_process_id) OVERRIDE; 53 virtual bool FilterProfanities(int render_process_id) OVERRIDE;
49 54
(...skipping 13 matching lines...) Expand all
63 68
64 scoped_refptr<OptionalRequestInfo> optional_request_info_; 69 scoped_refptr<OptionalRequestInfo> optional_request_info_;
65 scoped_refptr<TabWatcher> tab_watcher_; 70 scoped_refptr<TabWatcher> tab_watcher_;
66 71
67 DISALLOW_COPY_AND_ASSIGN(ChromeSpeechRecognitionManagerDelegate); 72 DISALLOW_COPY_AND_ASSIGN(ChromeSpeechRecognitionManagerDelegate);
68 }; 73 };
69 74
70 } // namespace speech 75 } // namespace speech
71 76
72 #endif // CHROME_BROWSER_SPEECH_CHROME_SPEECH_RECOGNITION_MANAGER_DELEGATE_H_ 77 #endif // CHROME_BROWSER_SPEECH_CHROME_SPEECH_RECOGNITION_MANAGER_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698