// Copyright 2014 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef COMPONENTS_TRANSLATE_CORE_BROWSER_LANGUAGE_STATE_H_ #define COMPONENTS_TRANSLATE_CORE_BROWSER_LANGUAGE_STATE_H_ #include <string> #include "base/memory/raw_ptr.h" #include "components/language/core/common/language_util.h" #include "components/translate/core/browser/translate_metrics_logger.h" namespace translate { class TranslateDriver; // This class holds the language state of the current page. // There is one LanguageState instance per tab. // It is used to determine when navigating to a new page whether it should // automatically be translated. // This auto-translate behavior is the expected behavior when: // - user is on page in language A that they had translated to language B. // - user clicks a link in that page that takes them to a page also in language // A. class LanguageState { … }; } // namespace translate #endif // COMPONENTS_TRANSLATE_CORE_BROWSER_LANGUAGE_STATE_H_