#include "components/translate/core/browser/language_state.h"
#include "base/check.h"
#include "components/translate/core/browser/translate_driver.h"
#include "components/translate/core/browser/translate_metrics_logger.h"
namespace translate {
LanguageState::LanguageState(TranslateDriver* driver)
: … { … }
LanguageState::~LanguageState() = default;
void LanguageState::DidNavigate(bool is_same_document_navigation,
bool is_main_frame,
bool reload,
const std::string& href_translate,
bool navigation_from_google) { … }
void LanguageState::LanguageDetermined(
const std::string& page_language,
bool page_level_translation_criteria_met) { … }
bool LanguageState::InTranslateNavigation() const { … }
void LanguageState::SetSourceLanguage(const std::string& language) { … }
void LanguageState::SetCurrentLanguage(const std::string& language) { … }
std::string LanguageState::AutoTranslateTo() const { … }
void LanguageState::SetTranslateEnabled(bool value) { … }
bool LanguageState::HasLanguageChanged() const { … }
void LanguageState::SetIsPageTranslated(bool value) { … }
}