#include "content/browser/speech/speech_recognition_session.h"
#include <memory>
#include "base/functional/bind.h"
#include "base/memory/weak_ptr.h"
#include "content/browser/speech/speech_recognition_manager_impl.h"
#include "mojo/public/cpp/bindings/pending_remote.h"
#include "mojo/public/cpp/bindings/remote.h"
namespace content {
SpeechRecognitionSession::SpeechRecognitionSession(
mojo::PendingRemote<media::mojom::SpeechRecognitionSessionClient> client)
: … { … }
SpeechRecognitionSession::~SpeechRecognitionSession() { … }
base::WeakPtr<SpeechRecognitionSession> SpeechRecognitionSession::AsWeakPtr() { … }
void SpeechRecognitionSession::Abort() { … }
void SpeechRecognitionSession::StopCapture() { … }
void SpeechRecognitionSession::OnRecognitionStart(int session_id) { … }
void SpeechRecognitionSession::OnAudioStart(int session_id) { … }
void SpeechRecognitionSession::OnSoundStart(int session_id) { … }
void SpeechRecognitionSession::OnSoundEnd(int session_id) { … }
void SpeechRecognitionSession::OnAudioEnd(int session_id) { … }
void SpeechRecognitionSession::OnRecognitionEnd(int session_id) { … }
void SpeechRecognitionSession::OnRecognitionResults(
int session_id,
const std::vector<media::mojom::WebSpeechRecognitionResultPtr>& results) { … }
void SpeechRecognitionSession::OnRecognitionError(
int session_id,
const media::mojom::SpeechRecognitionError& error) { … }
void SpeechRecognitionSession::OnAudioLevelsChange(int session_id,
float volume,
float noise_volume) { … }
void SpeechRecognitionSession::ConnectionErrorHandler() { … }
}