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

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: Audio Receiver unit test 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 OnAudioReceiverReady(
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