#ifndef CONTENT_SHELL_BROWSER_SHELL_SPEECH_RECOGNITION_MANAGER_DELEGATE_H_
#define CONTENT_SHELL_BROWSER_SHELL_SPEECH_RECOGNITION_MANAGER_DELEGATE_H_
#include "base/functional/bind.h"
#include "content/public/browser/speech_recognition_event_listener.h"
#include "content/public/browser/speech_recognition_manager_delegate.h"
namespace content {
class ShellSpeechRecognitionManagerDelegate
: public SpeechRecognitionManagerDelegate {
public:
ShellSpeechRecognitionManagerDelegate() {}
ShellSpeechRecognitionManagerDelegate(
const ShellSpeechRecognitionManagerDelegate&) = delete;
ShellSpeechRecognitionManagerDelegate& operator=(
const ShellSpeechRecognitionManagerDelegate&) = delete;
~ShellSpeechRecognitionManagerDelegate() override {}
void CheckRecognitionIsAllowed(
int session_id,
base::OnceCallback<void(bool ask_user, bool is_allowed)> callback)
override;
SpeechRecognitionEventListener* GetEventListener() override;
bool FilterProfanities(int render_process_id) override;
};
}
#endif