| Index: components/translate/core/browser/translate_prefs.h
|
| diff --git a/components/translate/core/browser/translate_prefs.h b/components/translate/core/browser/translate_prefs.h
|
| index 6b15c9e1922e05b8045dd4c4bec406e4fa10d649..6da8de7ef71b26079c96e1b596b3eafb89dbd0cd 100644
|
| --- a/components/translate/core/browser/translate_prefs.h
|
| +++ b/components/translate/core/browser/translate_prefs.h
|
| @@ -35,6 +35,8 @@ class TranslatePrefs {
|
| static const char kPrefTranslateDeniedCount[];
|
| static const char kPrefTranslateAcceptedCount[];
|
| static const char kPrefTranslateBlockedLanguages[];
|
| + static const char kPrefTranslateLastDeniedTime[];
|
| + static const char kPrefTranslateTooOftenDenied[];
|
|
|
| // |preferred_languages_pref| is only used on Chrome OS, other platforms must
|
| // pass NULL.
|
| @@ -87,6 +89,12 @@ class TranslatePrefs {
|
| void IncrementTranslationAcceptedCount(const std::string& language);
|
| void ResetTranslationAcceptedCount(const std::string& language);
|
|
|
| + // Update the last time on closing the Translate UI without translation.
|
| + void UpdateLastDeniedTime();
|
| +
|
| + // Returns true if translation is denied too often.
|
| + bool IsTooOftenDenied() const;
|
| +
|
| // Gets the language list of the language settings.
|
| void GetLanguageList(std::vector<std::string>* languages);
|
|
|
|
|