#ifndef CONTENT_BROWSER_SPEECH_TTS_PLATFORM_IMPL_H_
#define CONTENT_BROWSER_SPEECH_TTS_PLATFORM_IMPL_H_
#include <string>
#include "content/public/browser/tts_controller.h"
#include "content/public/browser/tts_platform.h"
namespace content {
class TtsPlatformImpl : public TtsPlatform {
public:
static TtsPlatformImpl* GetInstance();
TtsPlatformImpl(const TtsPlatformImpl&) = delete;
TtsPlatformImpl& operator=(const TtsPlatformImpl&) = delete;
void LoadBuiltInTtsEngine(BrowserContext* browser_context) override;
void WillSpeakUtteranceWithVoice(TtsUtterance* utterance,
const VoiceData& voice_data) override;
std::string GetError() override;
void ClearError() override;
void SetError(const std::string& error) override;
void Shutdown() override;
void FinalizeVoiceOrdering(std::vector<VoiceData>& voices) override;
void RefreshVoices() override {}
protected:
TtsPlatformImpl() {}
virtual ~TtsPlatformImpl() {}
std::string error_;
};
}
#endif